From 1ef6f550a81a21a0d55ccac949cf2da9f69a5c66 Mon Sep 17 00:00:00 2001 From: Rhys Howell Date: Wed, 10 Jul 2024 19:41:23 -0400 Subject: [PATCH] fixup: remove more unused files, re-add async dep --- package-lock.json | 2 - packages/hadron-build/images/logo.png | Bin 15581 -> 0 bytes packages/hadron-build/images/logo.svg | 59 ----------------------- packages/hadron-build/lib/git.js | 66 -------------------------- packages/hadron-build/package.json | 2 +- 5 files changed, 1 insertion(+), 128 deletions(-) delete mode 100644 packages/hadron-build/images/logo.png delete mode 100644 packages/hadron-build/images/logo.svg delete mode 100644 packages/hadron-build/lib/git.js 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 97976939dcef3baaaa31154d0d7c0964c6914768..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 15581 zcmeHuhgTEb7i|y`1rZxXk)|Nh1q38C6%<32CLm4ey@$|36h)M(q4y5b0t85a0Ff?T zdI=EeC3F%(=Y{Y65pTVmcuPGOCI#mrzpg zV9d+qZN5vPe<|wUilkpi9b+?rb@*m;AM>(NsPF=x^8gI^>q5{Y2+2a$4^dg zAb_+I$1!YnGghzyHgTxF#ya)H{}*T)`;!XrxGa_k0UX$ERx&27q+5hLb~lmeX2>bW zQ~)0ayRM-#e*!Nlgb2C!-&kL@`|Nk^nbbzAc&^vJL_v|N#ZGoMbB`|qJ4Xe0&vp5P z{aHB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9kyQZQOm=wsakv;E4uGI6K`x^MjdxB14Xh*v>5%HAk-Veyar_U5})#{&y12L5ZeI z1-}Or0jwE8Ue$>T?~&xLCV%Ta7n*v(M|x^A%j*jkdiU+UA8i5~&Kb-TR*&8~gvdfa z8#-zqE3`V&GFMQLl&D8DsvV-&`$DdN^$SOr)Do5WA`@XhA7(qc0N6c=?rW3>JwcizBh9k7~-M7UQF4Pv* zegUw|rh=$;iB^+cU%9E?PQkiETT0Flyu{$vix!l0Y0~&6&?<_y`YRJ zEW!xN`M>OvPVoK3Z4?pAyO!qYUv%OjMFnL6Wca)tRhJk1;&$BI*OvMaPpB5@+uBlK3I=Q@VfpgKFI+b`K^$*HUwVESbAa^u~ww zUqu0pkgFb>tV2f<)BwLlcojvO^8b5m0F@Xk_4Z>8I4SDn35+n%z^|B{o!boZhe*xW zn@)ox(R>>yulDxm9~5a!af8dG)z71*4+h0B3g(ZFy2XEY21hW0{C;8QC|!w>{3+D} zQ*LBLA8l)ldh$1r-)RGdrk4j5@kT_Z zssHryXf*G3iD}v3gygC=+#`0@L+SS#DNeA@6G8{2dT2!swXR52_|umw#^4=2Q#ky#WqOO`vMVJqn+@8Ovfari5g7=Y3Y2Qp<&No)IsM&X4!tKm z$8mzwaEr)r^PxTCjmJn@@R z-B{0&liG*qx-9!Wrj66>U)A>L@*3tZ*LPIiD)}ZU{gK45_XUi+VjCaqrv)eF1q}Va zp->(tfAmMhvt^U#+Jx#>(kP%()@+KsYQrxi=Rr@sF_Ld`y| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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",