binary-collections 2.0.12 → 2.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/binaries/binary-executor.cjs +89 -13
- package/binaries/clean-nodemodule.cjs +89 -13
- package/binaries/clean-nodemodules.cjs +89 -13
- package/binaries/dev.cjs +89 -13
- package/binaries/empty.cjs +89 -13
- package/binaries/git-reduce-size.cjs +89 -13
- package/binaries/javakill.cjs +89 -13
- package/binaries/kill-process.cjs +89 -13
- package/binaries/nodekill.cjs +89 -13
- package/binaries/prod.cjs +89 -13
- package/binaries/py.cjs +89 -13
- package/binaries/rmfind.cjs +89 -13
- package/binaries/rmx.cjs +89 -13
- package/binaries/submodule-token.cjs +89 -13
- package/binaries/test-cjs.cjs +89 -13
- package/binaries/test-esm.cjs +89 -13
- package/binaries/yarn-clean.cjs +89 -13
- package/binaries/yc +22 -1
- package/binaries/yc.cjs +89 -13
- package/binaries/ycw +256 -0
- package/binaries/ycw.cjs +254 -0
- package/docs-src/binary-collections.md +34 -0
- package/docs-src/changelog.md +26 -0
- package/docs-src/clean-github-actions-caches.md +115 -0
- package/docs-src/copy-move-file.md +59 -0
- package/docs-src/del-gradle.md +17 -0
- package/docs-src/del-ps.md +28 -0
- package/docs-src/downloader.md +62 -0
- package/docs-src/env-helpers.md +29 -0
- package/docs-src/find-node-modules.md +17 -0
- package/docs-src/free-chatgpt.md +26 -0
- package/docs-src/git-diff.md +33 -0
- package/docs-src/git-fix.md +34 -0
- package/docs-src/git-purge.md +17 -0
- package/docs-src/git-reduce-size.md +17 -0
- package/docs-src/git-undo.md +21 -0
- package/docs-src/kill-night-crows.md +26 -0
- package/docs-src/node-cache-cleaner.md +182 -0
- package/docs-src/node-executor.md +50 -0
- package/docs-src/node-package-packer.md +48 -0
- package/docs-src/npm-run-series.md +43 -0
- package/docs-src/package-resolutions-updater.md +22 -0
- package/docs-src/php-cs-fixer-staged.md +19 -0
- package/docs-src/print-directory-tree.md +35 -0
- package/docs-src/print-tarball-tree.md +55 -0
- package/docs-src/py.md +19 -0
- package/docs-src/remove-module.md +32 -0
- package/docs-src/rmfind-rmx.md +21 -0
- package/docs-src/rmpath.md +38 -0
- package/docs-src/run-by-checksum.md +87 -0
- package/docs-src/submodule-install.md +31 -0
- package/docs-src/submodule-remove.md +22 -0
- package/docs-src/submodule-token.md +17 -0
- package/docs-src/test-runners.md +21 -0
- package/docs-src/yarn-install.md +31 -0
- package/docs-src/yarn-reinstall.md +27 -0
- package/lib/binary-collections/config.cjs +1 -1
- package/lib/binary-collections/config.mjs +1 -1
- package/lib/binary-collections/findScript.cjs +35 -10
- package/lib/binary-collections/findScript.mjs +2 -2
- package/lib/binary-collections/listScript.cjs +35 -10
- package/lib/binary-collections/listScript.mjs +2 -2
- package/lib/binary-collections.cjs +45 -25
- package/lib/binary-collections.mjs +11 -11
- package/lib/changelog.cjs +7 -12
- package/lib/changelog.mjs +2 -2
- package/lib/{chunk-SPTECFE5.mjs → chunk-2MN4VPV2.mjs} +86 -20
- package/lib/{chunk-V2IBPCEV.mjs → chunk-6C7KTYGZ.mjs} +3 -1
- package/lib/{chunk-5RTXZVCW.mjs → chunk-6RK5UCTP.mjs} +5 -10
- package/lib/{chunk-FB2WKVJD.mjs → chunk-CD3HF3LK.mjs} +67 -35
- package/lib/{chunk-6PU7BAHB.mjs → chunk-FLYSZFLW.mjs} +1 -1
- package/lib/chunk-KLKAIFKI.mjs +40 -0
- package/lib/chunk-LVSPEFU2.mjs +86 -0
- package/lib/{chunk-2LSRSEXF.mjs → chunk-MGPYPKIE.mjs} +2 -2
- package/lib/{chunk-ZOWVMII3.mjs → chunk-NQXUYO67.mjs} +35 -10
- package/lib/{chunk-C6D2TTYU.mjs → chunk-OBXLTXFJ.mjs} +4 -2
- package/lib/chunk-QD4T255Z.mjs +40 -0
- package/lib/{chunk-XPJGCDOD.mjs → chunk-QII2EKCS.mjs} +14 -2
- package/lib/chunk-RDGDLSPD.mjs +76 -0
- package/lib/{chunk-NCZPTKDV.mjs → chunk-RDN6HF5Z.mjs} +1 -1
- package/lib/chunk-RJKTSUAX.mjs +123 -0
- package/lib/{chunk-66KDU4TX.mjs → chunk-TBWXE7ST.mjs} +36 -61
- package/lib/{chunk-M3YIYRHT.mjs → chunk-UY5VUEA3.mjs} +1 -1
- package/lib/chunk-WSHVPGNM.mjs +44 -0
- package/lib/{chunk-G5UUEWUO.mjs → chunk-X2B3X7D4.mjs} +1 -1
- package/lib/clean-github-actions-caches-cli.cjs +255 -213
- package/lib/clean-github-actions-caches-cli.mjs +25 -7
- package/lib/clean-github-actions-caches.cjs +231 -35
- package/lib/clean-github-actions-caches.d.cts +39 -1
- package/lib/clean-github-actions-caches.mjs +2 -1
- package/lib/cross-env/command.cjs +2 -2
- package/lib/cross-env/command.js +2 -2
- package/lib/cross-env/command.mjs +2 -2
- package/lib/cross-env/index.cjs +2 -2
- package/lib/cross-env/index.mjs +3 -3
- package/lib/cross-env/variable.mjs +2 -2
- package/lib/del-gradle.cjs +6 -11
- package/lib/del-gradle.mjs +1 -1
- package/lib/del-node-modules.cjs +185 -3
- package/lib/del-node-modules.js +3 -3
- package/lib/del-node-modules.mjs +6 -3
- package/lib/{del-ps.cjs → del-ps-cli.cjs} +36 -41
- package/lib/del-ps-cli.mjs +44 -0
- package/lib/del-yarn-caches.cjs +6 -11
- package/lib/del-yarn-caches.mjs +1 -1
- package/lib/downloader-cli.cjs +256 -0
- package/lib/downloader-cli.d.cts +2 -0
- package/lib/downloader-cli.mjs +90 -0
- package/lib/file/copy-cli.cjs +183 -2
- package/lib/file/copy-cli.mjs +6 -2
- package/lib/file/move-cli.cjs +183 -2
- package/lib/file/move-cli.mjs +6 -2
- package/lib/find-node-modules-cli.cjs +1 -1
- package/lib/find-node-modules-cli.mjs +1 -1
- package/lib/find-node-modules.cjs +1 -1
- package/lib/find-node-modules.mjs +1 -1
- package/lib/free-chatgpt.cjs +6 -11
- package/lib/free-chatgpt.mjs +1 -1
- package/lib/git/user-config.cjs +7 -12
- package/lib/git/user-config.mjs +2 -2
- package/lib/git-diff-cli.cjs +91 -30
- package/lib/git-diff-cli.mjs +3 -3
- package/lib/git-diff.cjs +91 -30
- package/lib/git-diff.js +85 -28
- package/lib/git-diff.mjs +3 -3
- package/lib/git-fix.cjs +7 -12
- package/lib/git-fix.mjs +2 -2
- package/lib/git-purge.cjs +7 -12
- package/lib/git-purge.mjs +2 -2
- package/lib/index.cjs +1 -1
- package/lib/index.mjs +1 -1
- package/lib/node-cache-cleaner-cli.cjs +185 -2
- package/lib/node-cache-cleaner-cli.js +2 -5
- package/lib/node-cache-cleaner-cli.mjs +8 -4
- package/lib/node-executor.cjs +183 -2
- package/lib/node-executor.mjs +5 -2
- package/lib/node-package-packer/build-readme.cjs +150 -0
- package/lib/node-package-packer/build-readme.d.mts +10 -0
- package/lib/node-package-packer/build-readme.mjs +10 -0
- package/lib/node-package-packer/build-tarball.cjs +495 -0
- package/lib/node-package-packer/build-tarball.d.mts +33 -0
- package/lib/node-package-packer/build-tarball.mjs +175 -0
- package/lib/node-package-packer-cli.cjs +525 -0
- package/lib/node-package-packer-cli.d.mts +1 -0
- package/lib/node-package-packer-cli.mjs +34 -0
- package/lib/npm-run-series.cjs +7 -12
- package/lib/npm-run-series.mjs +2 -2
- package/lib/package-resolutions-updater-cli.cjs +73 -76
- package/lib/package-resolutions-updater-cli.mjs +4 -3
- package/lib/package-resolutions-updater.cjs +71 -74
- package/lib/package-resolutions-updater.d.mts +34 -0
- package/lib/package-resolutions-updater.mjs +3 -2
- package/lib/php-cs-fixer-staged.cjs +1 -1
- package/lib/php-cs-fixer-staged.mjs +1 -1
- package/lib/print-directory-tree.cjs +16 -18
- package/lib/print-directory-tree.mjs +11 -8
- package/lib/print-tarball-tree.cjs +262 -0
- package/lib/print-tarball-tree.d.mts +1 -0
- package/lib/print-tarball-tree.mjs +68 -0
- package/lib/ps/index.cjs +10 -10
- package/lib/ps/index.mjs +4 -4
- package/lib/ps/table-parser.d.ts +3 -4
- package/lib/ps/table-parser.js +9 -16
- package/lib/remove-module.cjs +17 -22
- package/lib/remove-module.mjs +2 -2
- package/lib/rm-node-module-cli.cjs +171 -4
- package/lib/rm-node-module-cli.mjs +7 -4
- package/lib/rmpath-cli.cjs +285 -0
- package/lib/rmpath-cli.d.mts +1 -0
- package/lib/rmpath-cli.mjs +23 -0
- package/lib/rmpath.cjs +6 -217
- package/lib/rmpath.mjs +5 -101
- package/lib/run-by-checksum/cache.cjs +69 -0
- package/lib/run-by-checksum/cache.d.ts +19 -0
- package/lib/run-by-checksum/cache.js +50 -0
- package/lib/run-by-checksum/cache.mjs +12 -0
- package/lib/run-by-checksum/hash.cjs +72 -0
- package/lib/run-by-checksum/hash.d.ts +14 -0
- package/lib/run-by-checksum/hash.js +85 -0
- package/lib/{ps/isWin.mjs → run-by-checksum/hash.mjs} +5 -5
- package/lib/run-by-checksum/run.cjs +169 -0
- package/lib/run-by-checksum/run.d.ts +22 -0
- package/lib/run-by-checksum/run.js +93 -0
- package/lib/run-by-checksum/run.mjs +10 -0
- package/lib/run-by-checksum-cli.cjs +382 -0
- package/lib/run-by-checksum-cli.d.ts +2 -0
- package/lib/run-by-checksum-cli.js +43 -0
- package/lib/run-by-checksum-cli.mjs +56 -0
- package/lib/submodule-install.cjs +8 -13
- package/lib/submodule-install.mjs +3 -3
- package/lib/submodule-remove-cli.cjs +169 -2
- package/lib/submodule-remove-cli.js +2 -2
- package/lib/submodule-remove-cli.mjs +5 -2
- package/lib/utils/fetchResponse.cjs +24 -0
- package/lib/utils/fetchResponse.d.cts +25 -0
- package/lib/utils/fetchResponse.mjs +6 -0
- package/lib/utils/index.cjs +5 -10
- package/lib/utils/index.d.cts +2 -9
- package/lib/utils/index.mjs +1 -1
- package/lib/utils/isWindows.mjs +3 -1
- package/lib/utils/runBash.cjs +1 -1
- package/lib/utils/runBash.mjs +1 -1
- package/lib/yarn-per-branch-lock-installer.cjs +202 -11
- package/lib/yarn-per-branch-lock-installer.mjs +24 -11
- package/lib/yarn-reinstall.cjs +6 -11
- package/lib/yarn-reinstall.mjs +1 -1
- package/package.json +35 -10
- package/readme.html +2 -2
- package/readme.md +5 -5
- package/releases/readme.md +6 -3
- package/tmp/test-repo-runChecksum/test-complex-glob/README.md +1 -0
- package/tmp/test-repo-runChecksum/test-mixed-args/README.md +1 -0
- package/.opencode/package.json +0 -5
- package/lib/chunk-6S4NXESK.mjs +0 -26
- package/lib/del-ps.js +0 -32
- package/lib/del-ps.mjs +0 -43
- package/lib/ps/isWin.cjs +0 -26
- package/lib/ps/isWin.d.ts +0 -2
- package/lib/ps/isWin.js +0 -4
- package/test/package.json +0 -20
- package/test-project/package.json +0 -22
- package/test-project/workspaces/workspace-a/package.json +0 -135
- package/test-project/workspaces/workspace-a/test/demo/package.json +0 -25
- package/test-project/workspaces/workspace-b/package.json +0 -139
- package/test-project/workspaces/workspace-b/test/sample-project/package.json +0 -7
- package/test-project/workspaces/workspace-b/themes/hexo-theme-flowbite/package.json +0 -96
- package/tmp/rm-node-modules-test-project/package.json +0 -17
- package/tmp/rm-node-modules-test-project/packages/workspace-a/package.json +0 -16
- package/tmp/rm-node-modules-test-project/packages/workspace-b/package.json +0 -16
- package/tmp/test-repo/package.json +0 -17
- /package/lib/{del-ps.d.ts → del-ps-cli.d.mts} +0 -0
|
@@ -19,9 +19,9 @@ var require_utils = __commonJS({
|
|
|
19
19
|
init_cjs_shims();
|
|
20
20
|
var fs = require("fs");
|
|
21
21
|
var path2 = require("upath");
|
|
22
|
-
var
|
|
22
|
+
var minimistLib = require("minimist");
|
|
23
|
+
var argv = minimistLib(process.argv.slice(2));
|
|
23
24
|
var { exec } = require("child_process");
|
|
24
|
-
var { URL: URL2 } = require("url");
|
|
25
25
|
var { promisify } = require("util");
|
|
26
26
|
var execAsync = promisify(exec);
|
|
27
27
|
async function parseGitRemotes() {
|
|
@@ -34,7 +34,7 @@ var require_utils = __commonJS({
|
|
|
34
34
|
if (name && url) {
|
|
35
35
|
const [repoUrl] = url.split(" ");
|
|
36
36
|
try {
|
|
37
|
-
const parsedUrl = new
|
|
37
|
+
const parsedUrl = new URL(repoUrl);
|
|
38
38
|
const pathParts = parsedUrl.pathname.split("/").filter(Boolean);
|
|
39
39
|
if (parsedUrl.hostname === "github.com" && pathParts.length === 2) {
|
|
40
40
|
let repoPath = pathParts.join("/");
|
|
@@ -55,15 +55,10 @@ var require_utils = __commonJS({
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
module2.exports.parseGitRemotes = parseGitRemotes;
|
|
58
|
-
function
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
fullPath = fullPath.charAt(0).toUpperCase() + fullPath.slice(1);
|
|
58
|
+
function getArgs2(opts) {
|
|
59
|
+
if (opts) {
|
|
60
|
+
return minimistLib(process.argv.slice(2), opts);
|
|
62
61
|
}
|
|
63
|
-
return fullPath;
|
|
64
|
-
}
|
|
65
|
-
module2.exports.joinPathPreserveDriveLetter = joinPathPreserveDriveLetter;
|
|
66
|
-
function getArgs2() {
|
|
67
62
|
return argv;
|
|
68
63
|
}
|
|
69
64
|
module2.exports.getArgs = getArgs2;
|
|
@@ -190,7 +185,7 @@ var require_package = __commonJS({
|
|
|
190
185
|
"package.json"(exports2, module2) {
|
|
191
186
|
module2.exports = {
|
|
192
187
|
name: "binary-collections",
|
|
193
|
-
version: "2.0.
|
|
188
|
+
version: "2.0.13",
|
|
194
189
|
description: "Utility to clean any programming caches and more",
|
|
195
190
|
keywords: [
|
|
196
191
|
"cache",
|
|
@@ -226,19 +221,19 @@ var require_package = __commonJS({
|
|
|
226
221
|
files: [
|
|
227
222
|
"binaries",
|
|
228
223
|
"lib",
|
|
229
|
-
"
|
|
224
|
+
"docs-src",
|
|
230
225
|
"readme.md",
|
|
231
226
|
".puppeterrc.cjs",
|
|
232
227
|
"requirements.txt"
|
|
233
228
|
],
|
|
234
229
|
scripts: {
|
|
235
230
|
build: "tsc -b tsconfig.build.json && npm run build-tsup && npm run build-exports",
|
|
236
|
-
"build-exports": "node -r ts-node/register -r dotenv/config build.
|
|
231
|
+
"build-exports": "node -r ts-node/register -r dotenv/config build.mjs",
|
|
237
232
|
"build-packages": "yarn workspaces foreach --worktree --exclude=binary-collections --no-private run build",
|
|
238
233
|
"build-rollup": "rollup -c rollup.config.js",
|
|
239
234
|
"build-tsup": "node build.tsup.js",
|
|
240
235
|
clean: "rimraf lib tmp/dist binaries",
|
|
241
|
-
pack: "node
|
|
236
|
+
pack: "node package.cjs --yarn --filename=bin",
|
|
242
237
|
prepare: "husky",
|
|
243
238
|
"puppeteer:browser": "npx -y puppeteer browsers install chrome",
|
|
244
239
|
test: "test-cjs",
|
|
@@ -258,6 +253,7 @@ var require_package = __commonJS({
|
|
|
258
253
|
"ansi-colors": "^4.1.3",
|
|
259
254
|
axios: "^1.16.1",
|
|
260
255
|
"cross-spawn": "https://github.com/dimaslanjaka/node-cross-spawn/raw/78b09a1f799430fb251c1b438ec56ce7957674f4/release/cross-spawn.tgz",
|
|
256
|
+
"crypto-js": "^4.2.0",
|
|
261
257
|
dotenv: "^17.4.2",
|
|
262
258
|
"fs-extra": "^11.3.5",
|
|
263
259
|
"git-command-helper": "https://github.com/dimaslanjaka/git-command-helper/raw/ed17f70eb7444d24bd8eb984a4afe9fd64652838/release/git-command-helper.tgz",
|
|
@@ -269,9 +265,12 @@ var require_package = __commonJS({
|
|
|
269
265
|
"puppeteer-extra": "^3.3.6",
|
|
270
266
|
"puppeteer-extra-plugin-stealth": "^2.11.2",
|
|
271
267
|
"sbg-utility": "https://github.com/dimaslanjaka/static-blog-generator/raw/44e5c7b79b4e60f8c2d34857c27b8ce677d7493e/packages/sbg-utility/release/sbg-utility.tgz",
|
|
268
|
+
"tar-stream": "^3.2.0",
|
|
272
269
|
upath: "^3.0.7",
|
|
270
|
+
which: "^7.0.0",
|
|
273
271
|
yaml: "^2.9.0",
|
|
274
|
-
yarn: "^1.22.22"
|
|
272
|
+
yarn: "^1.22.22",
|
|
273
|
+
zlib: "^1.0.5"
|
|
275
274
|
},
|
|
276
275
|
devDependencies: {
|
|
277
276
|
"@babel/core": "^7.29.0",
|
|
@@ -285,12 +284,15 @@ var require_package = __commonJS({
|
|
|
285
284
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
286
285
|
"@types/babel__core": "^7",
|
|
287
286
|
"@types/babel__preset-env": "^7",
|
|
287
|
+
"@types/crypto-js": "^4",
|
|
288
288
|
"@types/fs-extra": "^11",
|
|
289
289
|
"@types/jest": "^30.0.0",
|
|
290
290
|
"@types/minimist": "^1",
|
|
291
291
|
"@types/mocha": "^10.0.10",
|
|
292
292
|
"@types/node": "^25.9.1",
|
|
293
293
|
"@types/ps-node": "^0",
|
|
294
|
+
"@types/tar-stream": "^3",
|
|
295
|
+
"@types/which": "^3.0.4",
|
|
294
296
|
"babel-jest": "^30.4.1",
|
|
295
297
|
"browser-sync": "^3.0.4",
|
|
296
298
|
"cross-env": "^10.1.0",
|
|
@@ -318,13 +320,16 @@ var require_package = __commonJS({
|
|
|
318
320
|
resolutions: {
|
|
319
321
|
"@types/through2": "https://github.com/dimaslanjaka/nodejs-package-types/raw/refs/heads/through2/release/types-through2.tgz",
|
|
320
322
|
"cross-spawn": "https://github.com/dimaslanjaka/node-cross-spawn/raw/78b09a1f799430fb251c1b438ec56ce7957674f4/release/cross-spawn.tgz",
|
|
321
|
-
"git-command-helper": "https://github.com/dimaslanjaka/git-command-helper/raw/
|
|
323
|
+
"git-command-helper": "https://github.com/dimaslanjaka/git-command-helper/raw/dd8c8ef596083f367c592f97a2439f9fc8ab33b2/release/git-command-helper.tgz",
|
|
322
324
|
"sbg-utility": "https://github.com/dimaslanjaka/static-blog-generator/raw/44e5c7b79b4e60f8c2d34857c27b8ce677d7493e/packages/sbg-utility/release/sbg-utility.tgz",
|
|
323
|
-
"@dimaslanjaka/eslint-base-config": "https://github.com/dimaslanjaka/eslint-base-config/raw/
|
|
325
|
+
"@dimaslanjaka/eslint-base-config": "https://github.com/dimaslanjaka/eslint-base-config/raw/9741b4feac89f303ea585e3ecac2b0e768434135/release/dimaslanjaka-eslint-base-config.tgz"
|
|
324
326
|
},
|
|
325
327
|
bin: {
|
|
326
328
|
"binary-collections": "lib/binary-collections.cjs",
|
|
327
329
|
"binary-executor": "binaries/binary-executor.cjs",
|
|
330
|
+
"build-package": "lib/node-package-packer-cli.cjs",
|
|
331
|
+
"build-package-tarball": "lib/node-package-packer-cli.cjs",
|
|
332
|
+
"build-tarball": "lib/node-package-packer-cli.cjs",
|
|
328
333
|
changelog: "lib/changelog.cjs",
|
|
329
334
|
chatgpt: "lib/free-chatgpt.cjs",
|
|
330
335
|
"clean-github-actions-cache": "lib/clean-github-actions-caches-cli.cjs",
|
|
@@ -339,14 +344,19 @@ var require_package = __commonJS({
|
|
|
339
344
|
"del-gradle": "lib/del-gradle.cjs",
|
|
340
345
|
"del-node-modules": "lib/del-node-modules.cjs",
|
|
341
346
|
"del-nodemodules": "lib/del-node-modules.cjs",
|
|
342
|
-
"del-ps": "lib/del-ps.cjs",
|
|
347
|
+
"del-ps": "lib/del-ps-cli.cjs",
|
|
343
348
|
"del-yarn-caches": "lib/del-yarn-caches.cjs",
|
|
344
349
|
"del-yarncaches": "lib/del-yarn-caches.cjs",
|
|
345
350
|
dev: "binaries/dev.cjs",
|
|
346
351
|
"dir-tree": "lib/print-directory-tree.cjs",
|
|
352
|
+
download: "lib/downloader-cli.cjs",
|
|
353
|
+
"download-file": "lib/downloader-cli.cjs",
|
|
354
|
+
downloader: "lib/downloader-cli.cjs",
|
|
347
355
|
empty: "binaries/empty.cjs",
|
|
348
356
|
"exec-node": "lib/node-executor.cjs",
|
|
349
357
|
"execute-node": "lib/node-executor.cjs",
|
|
358
|
+
"fetch-file": "lib/downloader-cli.cjs",
|
|
359
|
+
"file-downloader": "lib/downloader-cli.cjs",
|
|
350
360
|
"find-node-modules": "lib/find-node-modules-cli.cjs",
|
|
351
361
|
"free-chatgpt": "lib/free-chatgpt.cjs",
|
|
352
362
|
"git-diff": "lib/git-diff-cli.cjs",
|
|
@@ -365,14 +375,18 @@ var require_package = __commonJS({
|
|
|
365
375
|
"node-exec": "lib/node-executor.cjs",
|
|
366
376
|
"node-executor": "lib/node-executor.cjs",
|
|
367
377
|
"node-move": "lib/file/move-cli.cjs",
|
|
378
|
+
"node-package-packer": "lib/node-package-packer-cli.cjs",
|
|
368
379
|
nodekill: "binaries/nodekill.cjs",
|
|
369
380
|
"npm-run-series": "lib/npm-run-series.cjs",
|
|
370
381
|
nrs: "lib/npm-run-series.cjs",
|
|
382
|
+
"pack-node-package": "lib/node-package-packer-cli.cjs",
|
|
383
|
+
"pack-tarball": "lib/node-package-packer-cli.cjs",
|
|
371
384
|
"package-resolutions-updater": "lib/package-resolutions-updater-cli.cjs",
|
|
372
385
|
"php-cs-fixer-staged": "lib/php-cs-fixer-staged.cjs",
|
|
373
386
|
"pkg-res-updater": "lib/package-resolutions-updater-cli.cjs",
|
|
374
387
|
"pkg-resolutions-updater": "lib/package-resolutions-updater-cli.cjs",
|
|
375
388
|
"print-directory-tree": "lib/print-directory-tree.cjs",
|
|
389
|
+
"print-tarball-tree": "lib/print-tarball-tree.cjs",
|
|
376
390
|
"print-tree": "lib/print-directory-tree.cjs",
|
|
377
391
|
prod: "binaries/prod.cjs",
|
|
378
392
|
py: "binaries/py.cjs",
|
|
@@ -382,13 +396,18 @@ var require_package = __commonJS({
|
|
|
382
396
|
"rm-node-module": "lib/rm-node-module-cli.cjs",
|
|
383
397
|
"rm-node-modules": "lib/rm-node-module-cli.cjs",
|
|
384
398
|
rmfind: "binaries/rmfind.cjs",
|
|
385
|
-
rmpath: "lib/rmpath.cjs",
|
|
399
|
+
rmpath: "lib/rmpath-cli.cjs",
|
|
386
400
|
rmx: "binaries/rmx.cjs",
|
|
401
|
+
"run-by-checksum": "lib/run-by-checksum-cli.cjs",
|
|
402
|
+
"run-c": "lib/run-by-checksum-cli.cjs",
|
|
403
|
+
"run-checksum": "lib/run-by-checksum-cli.cjs",
|
|
387
404
|
"run-s": "lib/npm-run-series.cjs",
|
|
388
405
|
"run-series": "lib/npm-run-series.cjs",
|
|
389
406
|
"submodule-install": "lib/submodule-install.cjs",
|
|
390
407
|
"submodule-remove": "lib/submodule-remove-cli.cjs",
|
|
391
408
|
"submodule-token": "binaries/submodule-token.cjs",
|
|
409
|
+
"tarball-packer": "lib/node-package-packer-cli.cjs",
|
|
410
|
+
"tarball-tree": "lib/print-tarball-tree.cjs",
|
|
392
411
|
"test-cjs": "binaries/test-cjs.cjs",
|
|
393
412
|
"test-esm": "binaries/test-esm.cjs",
|
|
394
413
|
"undo-commit": "lib/git/undo-commit.cjs",
|
|
@@ -399,7 +418,8 @@ var require_package = __commonJS({
|
|
|
399
418
|
"yarn-install": "lib/yarn-per-branch-lock-installer.cjs",
|
|
400
419
|
"yarn-per-branch-lock-installer": "lib/yarn-per-branch-lock-installer.cjs",
|
|
401
420
|
"yarn-reinstall": "lib/yarn-reinstall.cjs",
|
|
402
|
-
yc: "binaries/yc.cjs"
|
|
421
|
+
yc: "binaries/yc.cjs",
|
|
422
|
+
ycw: "binaries/ycw.cjs"
|
|
403
423
|
}
|
|
404
424
|
};
|
|
405
425
|
}
|
|
@@ -552,12 +572,12 @@ function showHelp() {
|
|
|
552
572
|
console.log("\u{1F680} Binary Collections - Dynamic Script Runner");
|
|
553
573
|
console.log("\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550");
|
|
554
574
|
console.log("");
|
|
555
|
-
console.log("\u{1F4CB} Usage: npx binary-collections <script-name> [...args]");
|
|
575
|
+
console.log("\u{1F4CB} Usage: npx --legacy-peer-deps -y binary-collections <script-name> [...args]");
|
|
556
576
|
console.log("");
|
|
557
577
|
console.log("\u2728 Examples:");
|
|
558
|
-
console.log(" \u{1F4CA} npx binary-collections git-diff -s");
|
|
559
|
-
console.log(" \u{1F9F9} npx binary-collections del-node-modules");
|
|
560
|
-
console.log(" \u{1F50D} npx binary-collections find-node-modules --help");
|
|
578
|
+
console.log(" \u{1F4CA} npx --legacy-peer-deps -y binary-collections git-diff -s");
|
|
579
|
+
console.log(" \u{1F9F9} npx --legacy-peer-deps -y binary-collections del-node-modules");
|
|
580
|
+
console.log(" \u{1F50D} npx --legacy-peer-deps -y binary-collections find-node-modules --help");
|
|
561
581
|
console.log("");
|
|
562
582
|
console.log("\u2139\uFE0F This tool will search for <script-name>.{cjs,js,mjs} in the script's directory");
|
|
563
583
|
console.log(" and execute it with the provided arguments.");
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
require_executeScript
|
|
5
|
-
} from "./chunk-PXBMHE7O.mjs";
|
|
6
3
|
import {
|
|
7
4
|
require_findScript
|
|
8
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RDN6HF5Z.mjs";
|
|
9
6
|
import {
|
|
10
7
|
require_listScript
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-FLYSZFLW.mjs";
|
|
9
|
+
import "./chunk-NQXUYO67.mjs";
|
|
10
|
+
import {
|
|
11
|
+
require_executeScript
|
|
12
|
+
} from "./chunk-PXBMHE7O.mjs";
|
|
13
13
|
import {
|
|
14
14
|
require_utils
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6RK5UCTP.mjs";
|
|
16
16
|
import {
|
|
17
17
|
__commonJS,
|
|
18
18
|
__dirname,
|
|
@@ -32,12 +32,12 @@ var require_binary_collections = __commonJS({
|
|
|
32
32
|
console.log("\u{1F680} Binary Collections - Dynamic Script Runner");
|
|
33
33
|
console.log("\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550");
|
|
34
34
|
console.log("");
|
|
35
|
-
console.log("\u{1F4CB} Usage: npx binary-collections <script-name> [...args]");
|
|
35
|
+
console.log("\u{1F4CB} Usage: npx --legacy-peer-deps -y binary-collections <script-name> [...args]");
|
|
36
36
|
console.log("");
|
|
37
37
|
console.log("\u2728 Examples:");
|
|
38
|
-
console.log(" \u{1F4CA} npx binary-collections git-diff -s");
|
|
39
|
-
console.log(" \u{1F9F9} npx binary-collections del-node-modules");
|
|
40
|
-
console.log(" \u{1F50D} npx binary-collections find-node-modules --help");
|
|
38
|
+
console.log(" \u{1F4CA} npx --legacy-peer-deps -y binary-collections git-diff -s");
|
|
39
|
+
console.log(" \u{1F9F9} npx --legacy-peer-deps -y binary-collections del-node-modules");
|
|
40
|
+
console.log(" \u{1F50D} npx --legacy-peer-deps -y binary-collections find-node-modules --help");
|
|
41
41
|
console.log("");
|
|
42
42
|
console.log("\u2139\uFE0F This tool will search for <script-name>.{cjs,js,mjs} in the script's directory");
|
|
43
43
|
console.log(" and execute it with the provided arguments.");
|
package/lib/changelog.cjs
CHANGED
|
@@ -19,9 +19,9 @@ var require_utils = __commonJS({
|
|
|
19
19
|
init_cjs_shims();
|
|
20
20
|
var fs2 = require("fs");
|
|
21
21
|
var path2 = require("upath");
|
|
22
|
-
var
|
|
22
|
+
var minimistLib = require("minimist");
|
|
23
|
+
var argv = minimistLib(process.argv.slice(2));
|
|
23
24
|
var { exec } = require("child_process");
|
|
24
|
-
var { URL: URL2 } = require("url");
|
|
25
25
|
var { promisify } = require("util");
|
|
26
26
|
var execAsync = promisify(exec);
|
|
27
27
|
async function parseGitRemotes() {
|
|
@@ -34,7 +34,7 @@ var require_utils = __commonJS({
|
|
|
34
34
|
if (name && url) {
|
|
35
35
|
const [repoUrl] = url.split(" ");
|
|
36
36
|
try {
|
|
37
|
-
const parsedUrl = new
|
|
37
|
+
const parsedUrl = new URL(repoUrl);
|
|
38
38
|
const pathParts = parsedUrl.pathname.split("/").filter(Boolean);
|
|
39
39
|
if (parsedUrl.hostname === "github.com" && pathParts.length === 2) {
|
|
40
40
|
let repoPath = pathParts.join("/");
|
|
@@ -55,15 +55,10 @@ var require_utils = __commonJS({
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
module2.exports.parseGitRemotes = parseGitRemotes;
|
|
58
|
-
function
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
fullPath = fullPath.charAt(0).toUpperCase() + fullPath.slice(1);
|
|
58
|
+
function getArgs2(opts) {
|
|
59
|
+
if (opts) {
|
|
60
|
+
return minimistLib(process.argv.slice(2), opts);
|
|
62
61
|
}
|
|
63
|
-
return fullPath;
|
|
64
|
-
}
|
|
65
|
-
module2.exports.joinPathPreserveDriveLetter = joinPathPreserveDriveLetter;
|
|
66
|
-
function getArgs2() {
|
|
67
62
|
return argv;
|
|
68
63
|
}
|
|
69
64
|
module2.exports.getArgs = getArgs2;
|
|
@@ -188,7 +183,7 @@ var require_utils = __commonJS({
|
|
|
188
183
|
// src/changelog.cjs
|
|
189
184
|
init_cjs_shims();
|
|
190
185
|
var fs = require("fs");
|
|
191
|
-
var path = require("
|
|
186
|
+
var path = require("upath");
|
|
192
187
|
var { EOL } = require("os");
|
|
193
188
|
var { getArgs } = require_utils();
|
|
194
189
|
var spawn = require("child_process").spawn;
|
package/lib/changelog.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
require_utils
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6RK5UCTP.mjs";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__dirname,
|
|
@@ -14,7 +14,7 @@ var require_changelog = __commonJS({
|
|
|
14
14
|
"src/changelog.cjs"() {
|
|
15
15
|
init_esm_shims();
|
|
16
16
|
var fs = __require("fs");
|
|
17
|
-
var path = __require("
|
|
17
|
+
var path = __require("upath");
|
|
18
18
|
var { EOL } = __require("os");
|
|
19
19
|
var { getArgs } = require_utils();
|
|
20
20
|
var spawn = __require("child_process").spawn;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
require_config
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-X2B3X7D4.mjs";
|
|
5
5
|
import {
|
|
6
6
|
runChatGpt
|
|
7
7
|
} from "./chunk-GAGABICI.mjs";
|
|
8
8
|
import {
|
|
9
9
|
require_utils
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6RK5UCTP.mjs";
|
|
11
11
|
import {
|
|
12
12
|
__toESM,
|
|
13
13
|
init_esm_shims
|
|
@@ -35,16 +35,16 @@ var DIFF_OUTPUT_RELATIVE = path.relative(process.cwd(), DIFF_OUTPUT);
|
|
|
35
35
|
var GPT_DIFF_OUTPUT_RELATIVE = path.relative(process.cwd(), GPT_DIFF_OUTPUT);
|
|
36
36
|
fs.ensureDirSync(CACHE_DIR, { mode: 493 });
|
|
37
37
|
function showHelp() {
|
|
38
|
-
console.log("\u{
|
|
39
|
-
console.log("
|
|
40
|
-
console.log("
|
|
41
|
-
console.log("
|
|
42
|
-
console.log("
|
|
43
|
-
console.log("
|
|
44
|
-
console.log("
|
|
45
|
-
console.log("
|
|
46
|
-
console.log("
|
|
47
|
-
console.log("
|
|
38
|
+
console.log("\u{1F4CB} Git Diff Helper");
|
|
39
|
+
console.log("Usage:");
|
|
40
|
+
console.log(" git-diff FILE Show staged diff of specified file");
|
|
41
|
+
console.log(" git-diff --staged-only Show staged diff of all files");
|
|
42
|
+
console.log(" git-diff -s | -S Same as --staged-only");
|
|
43
|
+
console.log(" git-diff --unstaged FILE Show unstaged diff of specified file");
|
|
44
|
+
console.log(" git-diff --unstaged Show unstaged diff of all files");
|
|
45
|
+
console.log(" git-diff -u Same as --unstaged");
|
|
46
|
+
console.log(" git-diff --ai Run ChatGPT automation for commit message");
|
|
47
|
+
console.log(" git-diff --help | -h Show this help message");
|
|
48
48
|
console.log("");
|
|
49
49
|
console.log(`\u{1F4BE} Output is saved to: ${DIFF_OUTPUT_RELATIVE}`);
|
|
50
50
|
console.log(`\u{1F916} GPT prompt is saved to: ${GPT_DIFF_OUTPUT_RELATIVE}`);
|
|
@@ -52,14 +52,14 @@ function showHelp() {
|
|
|
52
52
|
}
|
|
53
53
|
function runGitDiff(command, successMessage, errorMessage) {
|
|
54
54
|
try {
|
|
55
|
-
console.log(`\
|
|
55
|
+
console.log(`\u2139\uFE0F Running command: ${command}`);
|
|
56
56
|
const result = execSync(command, {
|
|
57
57
|
encoding: "utf8",
|
|
58
58
|
maxBuffer: 1024 * 1024 * 10
|
|
59
59
|
// 10MB buffer to handle large diffs
|
|
60
60
|
});
|
|
61
61
|
if (!result || result.trim() === "") {
|
|
62
|
-
console.log(`\u2139\uFE0F
|
|
62
|
+
console.log(`\u2139\uFE0F No changes found for the specified criteria`);
|
|
63
63
|
writefile(DIFF_OUTPUT, "# No changes found\n");
|
|
64
64
|
console.log(`\u2705 Empty diff saved to "${DIFF_OUTPUT_RELATIVE}"`);
|
|
65
65
|
return false;
|
|
@@ -67,7 +67,7 @@ function runGitDiff(command, successMessage, errorMessage) {
|
|
|
67
67
|
writefile(DIFF_OUTPUT, result);
|
|
68
68
|
writefile(
|
|
69
69
|
GPT_DIFF_OUTPUT,
|
|
70
|
-
`Hello
|
|
70
|
+
`Hello!
|
|
71
71
|
Can you create a conventional commit message by diff content below:
|
|
72
72
|
|
|
73
73
|
\`\`\`${result}
|
|
@@ -82,14 +82,56 @@ Thank you!`
|
|
|
82
82
|
return true;
|
|
83
83
|
} catch (error) {
|
|
84
84
|
console.error(`\u274C ${errorMessage}`);
|
|
85
|
-
console.error(`\
|
|
86
|
-
console.error(`\
|
|
85
|
+
console.error(`\u274C Command: ${command}`);
|
|
86
|
+
console.error(`\u274C Error: ${error.message}`);
|
|
87
87
|
if (error.message.includes("not a git repository")) {
|
|
88
|
-
console.error("\
|
|
88
|
+
console.error("\u274C Make sure you are in a git repository");
|
|
89
89
|
}
|
|
90
90
|
process.exit(1);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
+
function getUntrackedDiff() {
|
|
94
|
+
try {
|
|
95
|
+
const untrackedStr = execSync("git ls-files --others --exclude-standard", {
|
|
96
|
+
encoding: "utf8",
|
|
97
|
+
maxBuffer: 1024 * 1024 * 10
|
|
98
|
+
}).trim();
|
|
99
|
+
if (!untrackedStr) return "";
|
|
100
|
+
const untrackedFiles = untrackedStr.split("\n").filter(function(f) {
|
|
101
|
+
return f;
|
|
102
|
+
});
|
|
103
|
+
if (untrackedFiles.length === 0) return "";
|
|
104
|
+
var result = "\n# Untracked files:\n";
|
|
105
|
+
for (var i = 0; i < untrackedFiles.length; i++) {
|
|
106
|
+
var file = untrackedFiles[i];
|
|
107
|
+
if (!fs.existsSync(file)) continue;
|
|
108
|
+
var stat = fs.statSync(file);
|
|
109
|
+
if (!stat.isFile()) continue;
|
|
110
|
+
var content;
|
|
111
|
+
try {
|
|
112
|
+
content = fs.readFileSync(file, "utf8");
|
|
113
|
+
} catch (_a) {
|
|
114
|
+
continue;
|
|
115
|
+
}
|
|
116
|
+
var lines = content.split("\n");
|
|
117
|
+
if (lines.length > 0 && lines[lines.length - 1] === "") {
|
|
118
|
+
lines.pop();
|
|
119
|
+
}
|
|
120
|
+
result += "diff --git a/" + file + " b/" + file + "\n";
|
|
121
|
+
result += "new file mode 100644\n";
|
|
122
|
+
result += "index 0000000..0000000\n";
|
|
123
|
+
result += "--- /dev/null\n";
|
|
124
|
+
result += "+++ b/" + file + "\n";
|
|
125
|
+
result += "@@ -0,0 +1," + (lines.length || 0) + " @@\n";
|
|
126
|
+
for (var j = 0; j < lines.length; j++) {
|
|
127
|
+
result += "+" + lines[j] + "\n";
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
return result;
|
|
131
|
+
} catch (_b) {
|
|
132
|
+
return "";
|
|
133
|
+
}
|
|
134
|
+
}
|
|
93
135
|
function fileHasChanges(file, mode) {
|
|
94
136
|
const command = mode === "staged" ? `git diff --cached --quiet -- "${file}"` : `git diff --quiet -- "${file}"`;
|
|
95
137
|
try {
|
|
@@ -124,6 +166,30 @@ async function mainGitDiff() {
|
|
|
124
166
|
`Full ${fullDiffModeLabel} diff saved to "${ansiColors.green(DIFF_OUTPUT_RELATIVE)}"`,
|
|
125
167
|
"Failed to save all diff's"
|
|
126
168
|
);
|
|
169
|
+
const untrackedDiff = getUntrackedDiff();
|
|
170
|
+
if (untrackedDiff) {
|
|
171
|
+
const UNTRACKED_DIFF_OUTPUT = (0, import_config.getTempPath)(`git-diff/untracked-${FILENAME}.txt`);
|
|
172
|
+
const UNTRACKED_GPT_DIFF_OUTPUT = (0, import_config.getTempPath)(`git-diff/gpt-untracked-${FILENAME}.txt`);
|
|
173
|
+
const UNTRACKED_DIFF_OUTPUT_RELATIVE = path.relative(process.cwd(), UNTRACKED_DIFF_OUTPUT);
|
|
174
|
+
writefile(UNTRACKED_DIFF_OUTPUT, untrackedDiff);
|
|
175
|
+
writefile(
|
|
176
|
+
UNTRACKED_GPT_DIFF_OUTPUT,
|
|
177
|
+
`Hello!
|
|
178
|
+
Can you create a conventional commit message by diff content below:
|
|
179
|
+
|
|
180
|
+
\`\`\`${untrackedDiff}
|
|
181
|
+
\`\`\`
|
|
182
|
+
|
|
183
|
+
Give me result as codeblock with language "text" only.
|
|
184
|
+
|
|
185
|
+
Thank you!`
|
|
186
|
+
);
|
|
187
|
+
console.log(`\u2705 Untracked file diff saved to "${ansiColors.green(UNTRACKED_DIFF_OUTPUT_RELATIVE)}"`);
|
|
188
|
+
console.log(
|
|
189
|
+
`\u{1F4BE} AI diff prompt saved to "${ansiColors.green(path.relative(process.cwd(), UNTRACKED_GPT_DIFF_OUTPUT))}"`
|
|
190
|
+
);
|
|
191
|
+
hasDiff = true;
|
|
192
|
+
}
|
|
127
193
|
} else {
|
|
128
194
|
let fileDiffMode = useUnstaged ? "unstaged" : "staged";
|
|
129
195
|
if (!useUnstaged && !fileHasChanges(file, "staged") && fileHasChanges(file, "unstaged")) {
|
|
@@ -153,7 +219,7 @@ async function mainGitDiff() {
|
|
|
153
219
|
];
|
|
154
220
|
const opencodePromptPath = (0, import_config.getTempPath)(`git-diff/opencode-${FILENAME}.txt`);
|
|
155
221
|
writefile(opencodePromptPath, opencodePrompt.join("\n"));
|
|
156
|
-
console.log(`\
|
|
222
|
+
console.log(`\u2705 OpenCode prompt saved to "${ansiColors.green(path.relative(process.cwd(), opencodePromptPath))}"`);
|
|
157
223
|
}
|
|
158
224
|
if (args.ai) {
|
|
159
225
|
try {
|
|
@@ -163,7 +229,7 @@ async function mainGitDiff() {
|
|
|
163
229
|
console.error("\u{1F4A1} Try running with visible browser mode or check if Chrome is installed");
|
|
164
230
|
}
|
|
165
231
|
} else {
|
|
166
|
-
console.log("\u{1F4A1}
|
|
232
|
+
console.log("\u{1F4A1} Use --ai flag to generate commit message with ChatGPT");
|
|
167
233
|
}
|
|
168
234
|
}
|
|
169
235
|
var git_diff_default = runGitDiff;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
|
+
init_isWindows,
|
|
3
4
|
isWindows
|
|
4
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QII2EKCS.mjs";
|
|
5
6
|
import {
|
|
6
7
|
init_esm_shims
|
|
7
8
|
} from "./chunk-QQ4A6DLD.mjs";
|
|
8
9
|
|
|
9
10
|
// src/cross-env/variable.ts
|
|
10
11
|
init_esm_shims();
|
|
12
|
+
init_isWindows();
|
|
11
13
|
var pathLikeEnvVarWhitelist = /* @__PURE__ */ new Set(["PATH", "NODE_PATH"]);
|
|
12
14
|
function replaceListDelimiters(varValue, varName = "") {
|
|
13
15
|
const targetSeparator = isWindows() ? ";" : ":";
|
|
@@ -11,9 +11,9 @@ var require_utils = __commonJS({
|
|
|
11
11
|
init_esm_shims();
|
|
12
12
|
var fs = __require("fs");
|
|
13
13
|
var path = __require("upath");
|
|
14
|
-
var
|
|
14
|
+
var minimistLib = __require("minimist");
|
|
15
|
+
var argv = minimistLib(process.argv.slice(2));
|
|
15
16
|
var { exec } = __require("child_process");
|
|
16
|
-
var { URL } = __require("url");
|
|
17
17
|
var { promisify } = __require("util");
|
|
18
18
|
var execAsync = promisify(exec);
|
|
19
19
|
async function parseGitRemotes() {
|
|
@@ -47,15 +47,10 @@ var require_utils = __commonJS({
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
module.exports.parseGitRemotes = parseGitRemotes;
|
|
50
|
-
function
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
fullPath = fullPath.charAt(0).toUpperCase() + fullPath.slice(1);
|
|
50
|
+
function getArgs(opts) {
|
|
51
|
+
if (opts) {
|
|
52
|
+
return minimistLib(process.argv.slice(2), opts);
|
|
54
53
|
}
|
|
55
|
-
return fullPath;
|
|
56
|
-
}
|
|
57
|
-
module.exports.joinPathPreserveDriveLetter = joinPathPreserveDriveLetter;
|
|
58
|
-
function getArgs() {
|
|
59
54
|
return argv;
|
|
60
55
|
}
|
|
61
56
|
module.exports.getArgs = getArgs;
|