diff --git a/package-lock.json b/package-lock.json index 1d5f94e846c..a308a795e67 100644 --- a/package-lock.json +++ b/package-lock.json @@ -48340,7 +48340,6 @@ "@octokit/rest": "^18.6.2", "asar": "^3.0.3", "async": "^3.2.2", - "bluebird": "^3.7.2", "chalk": "^4.1.2", "cli-table": "^0.3.1", "debug": "^4.3.4", @@ -74206,7 +74205,6 @@ "@octokit/rest": "^18.6.2", "asar": "^3.0.3", "async": "^3.2.2", - "bluebird": "^3.7.2", "chai": "^4.2.0", "chalk": "^4.1.2", "cli-table": "^0.3.1", diff --git a/packages/hadron-build/images/logo.png b/packages/hadron-build/images/logo.png deleted file mode 100644 index 97976939dce..00000000000 Binary files a/packages/hadron-build/images/logo.png and /dev/null differ diff --git a/packages/hadron-build/images/logo.svg b/packages/hadron-build/images/logo.svg deleted file mode 100644 index 1d8ecfa2aeb..00000000000 --- a/packages/hadron-build/images/logo.svg +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Hadron - - - Build - - diff --git a/packages/hadron-build/lib/git.js b/packages/hadron-build/lib/git.js deleted file mode 100644 index 65b3e3919d8..00000000000 --- a/packages/hadron-build/lib/git.js +++ /dev/null @@ -1,66 +0,0 @@ -'use strict'; -/* eslint no-sync: 0 */ -const Promise = require('bluebird'); -const execFile = Promise.promisify(require('child_process').execFile); -const execFileSync = require('child_process').execFileSync; -const which = require('which'); - -const parse = (stdout) => { - const tag = stdout.toString('utf-8').split('\n')[0]; - return tag || null; -}; - -/** - * @param {String} sha - * @param {Function} done - * @example - * > git.isTag('2557def1585d4ac6752f9c21fc4e9af4e41979df'); - * > { '0': null, '1': false } - * > git.isTag('1a65be32d833f0eb5b3e3c68b15dbeff20ddcd35'); - * > { '0': null, '1': true } - * @return {Promise} - */ -exports.isTag = (sha) => { - return exports.getTag(sha) - .then((tag) => tag !== null); -}; - -exports.isTagSync = (sha) => { - return exports.getTagSync(sha) !== null; -}; - -const getExecArgs = (sha) => { - const GIT = which.sync('git'); - const opts = { - cwd: process.cwd(), - env: process.env - }; - - const args = [ - 'describe', - '--exact-match', - sha - ]; - - return [ - GIT, args, opts - ]; -}; - -/** - * @param {String} sha - * @param {Function} done - * @example - * > git.getTag('2557def1585d4ac6752f9c21fc4e9af4e41979df'); - * > { '0': null, '1': null } - * > git.getGitTag('1a65be32d833f0eb5b3e3c68b15dbeff20ddcd35'); - > { '0': null, '1': 'v1.2.0-pre.0' } - * @return {Promise} - */ -exports.getTag = (sha) => { - return execFile.apply(null, getExecArgs(sha)).then(parse); -}; - -exports.getTagSync = (sha) => { - return parse(execFileSync.apply(null, getExecArgs(sha))); -}; diff --git a/packages/hadron-build/package.json b/packages/hadron-build/package.json index ee78d5f2002..dc8290f1e90 100644 --- a/packages/hadron-build/package.json +++ b/packages/hadron-build/package.json @@ -27,7 +27,7 @@ "@npmcli/arborist": "^6.2.0", "@octokit/rest": "^18.6.2", "asar": "^3.0.3", - "bluebird": "^3.7.2", + "async": "^3.2.2", "chalk": "^4.1.2", "cli-table": "^0.3.1", "debug": "^4.3.4",