binary-collections 2.0.9 → 2.0.10
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 +43 -0
- package/{bin → binaries}/clean-nodemodule +0 -0
- package/binaries/clean-nodemodule.cjs +43 -0
- package/binaries/clean-nodemodule.cmd +4 -0
- package/{bin → binaries}/clean-nodemodules +0 -0
- package/binaries/clean-nodemodules.cjs +43 -0
- package/binaries/clean-nodemodules.cmd +5 -0
- package/{bin → binaries}/dev +0 -0
- package/binaries/dev.cjs +43 -0
- package/{bin → binaries}/empty +0 -0
- package/binaries/empty.cjs +43 -0
- package/{bin → binaries}/git-reduce-size +0 -0
- package/binaries/git-reduce-size.cjs +43 -0
- package/binaries/javakill.cjs +43 -0
- package/{bin → binaries}/javakill.cmd +0 -0
- package/{bin → binaries}/kill-process +0 -0
- package/binaries/kill-process.cjs +43 -0
- package/binaries/nodekill.cjs +43 -0
- package/{bin → binaries}/nodekill.ps1 +0 -0
- package/{bin → binaries}/prod +0 -0
- package/binaries/prod.cjs +43 -0
- package/{bin → binaries}/rmfind +0 -0
- package/binaries/rmfind.cjs +43 -0
- package/{bin → binaries}/rmx +0 -0
- package/binaries/rmx.cjs +43 -0
- package/{bin → binaries}/submodule-token +0 -0
- package/binaries/submodule-token.cjs +43 -0
- package/docs-src/clean-github-actions-caches.md +26 -0
- package/docs-src/free-chatgpt.md +26 -0
- package/lib/binary-collections-config.cjs +3 -2
- package/lib/binary-collections-config.mjs +2 -2
- package/lib/binary-collections.cjs +452 -105
- package/lib/binary-collections.mjs +131 -84
- package/lib/changelog.cjs +3 -3
- package/lib/changelog.mjs +177 -171
- package/lib/chunk-4EWQC6GZ.mjs +382 -0
- package/lib/chunk-4ZI7BQKQ.mjs +381 -0
- package/lib/chunk-5J2BEPY5.mjs +83 -0
- package/lib/{chunk-4BYBVEYC.mjs → chunk-66PAU5PS.mjs} +5 -4
- package/lib/chunk-6HHJRKFB.mjs +59 -0
- package/lib/chunk-6S4NXESK.mjs +26 -0
- package/lib/{chunk-ZYAQRPUL.mjs → chunk-7YD7IPFF.mjs} +2 -2
- package/lib/{chunk-SH3L6HHV.mjs → chunk-A2JQXI5Z.mjs} +2 -2
- package/lib/{chunk-EGSSKVDH.mjs → chunk-A3VUZEJK.mjs} +1 -1
- package/lib/chunk-AGZYRDC2.mjs +323 -0
- package/lib/{chunk-VVEZVNIV.mjs → chunk-AI4CVPJ7.mjs} +6 -6
- package/lib/chunk-BDCHCWHD.mjs +136 -0
- package/lib/chunk-BEZKJ25G.mjs +140 -0
- package/lib/chunk-DI5MDPSN.mjs +386 -0
- package/lib/{chunk-ONIBBBQ3.mjs → chunk-E6FDDAOO.mjs} +4 -3
- package/lib/chunk-FKI7IEB5.mjs +172 -0
- package/lib/chunk-GJTGHXRA.mjs +356 -0
- package/lib/{chunk-YV7DO3YV.mjs → chunk-HLGOWBEO.mjs} +1 -1
- package/lib/chunk-HMRMTYZM.mjs +40 -0
- package/lib/chunk-HN52G2YL.mjs +305 -0
- package/lib/chunk-HO6GHCOB.mjs +385 -0
- package/lib/chunk-LEM5OMRP.mjs +384 -0
- package/lib/{chunk-YX5U7XDR.mjs → chunk-M3YIYRHT.mjs} +6 -5
- package/lib/chunk-O6SWBEOQ.mjs +81 -0
- package/lib/{chunk-JGR2NW6D.mjs → chunk-PDSXF5HY.mjs} +3 -3
- package/lib/{chunk-AASHBCRW.mjs → chunk-QQ4A6DLD.mjs} +8 -0
- package/lib/chunk-RCP7DHVY.mjs +190 -0
- package/lib/chunk-SBNDSKG5.mjs +136 -0
- package/lib/chunk-U6SO4QEV.mjs +320 -0
- package/lib/{chunk-APBWENF6.mjs → chunk-V3N3JEUF.mjs} +3 -3
- package/lib/chunk-XD6BJK6Q.mjs +351 -0
- package/lib/chunk-XVBFFVCJ.mjs +209 -0
- package/lib/chunk-YXSFGA2D.mjs +383 -0
- package/lib/clean-github-actions-caches.cjs +243 -148
- package/lib/clean-github-actions-caches.mjs +3 -2
- package/lib/del-gradle.cjs +2 -2
- package/lib/del-gradle.js +1 -1
- package/lib/del-gradle.mjs +2 -2
- package/lib/del-node-modules.cjs +2 -2
- package/lib/del-node-modules.js +1 -1
- package/lib/del-node-modules.mjs +2 -2
- package/lib/del-ps.cjs +29 -8
- package/lib/del-ps.js +2 -2
- package/lib/del-ps.mjs +7 -5
- package/lib/del-yarn-caches.cjs +26 -5
- package/lib/del-yarn-caches.js +38 -3
- package/lib/del-yarn-caches.mjs +6 -6
- package/lib/find-node-modules-cli.cjs +5 -4
- package/lib/find-node-modules-cli.js +1 -1
- package/lib/find-node-modules-cli.mjs +2 -2
- package/lib/find-node-modules.cjs +4 -3
- package/lib/{find-node-modules.d.ts → find-node-modules.d.cts} +1 -1
- package/lib/find-node-modules.mjs +2 -2
- package/lib/free-chatgpt.cjs +548 -0
- package/lib/free-chatgpt.js +51 -0
- package/lib/free-chatgpt.mjs +50 -0
- package/lib/git/gitattributes.cjs +1 -1
- package/lib/git/{gitattributes.d.mts → gitattributes.d.cts} +5 -7
- package/lib/git/gitattributes.mjs +2 -2
- package/lib/git/line-endings.cjs +297 -64
- package/lib/git/line-endings.mjs +4 -4
- package/lib/git/normalize.cjs +26 -36
- package/lib/git/normalize.mjs +2 -2
- package/lib/git/permissions.cjs +77 -11
- package/lib/git/permissions.mjs +3 -3
- package/lib/git/pull-strategy.cjs +76 -9
- package/lib/git/pull-strategy.mjs +3 -3
- package/lib/git/user-config.cjs +266 -83
- package/lib/git/user-config.mjs +4 -4
- package/lib/git/utils.cjs +40 -60
- package/lib/git/utils.mjs +2 -2
- package/lib/git-diff-cli.cjs +651 -0
- package/lib/git-diff-cli.d.ts +1 -0
- package/lib/git-diff-cli.js +15 -0
- package/lib/git-diff-cli.mjs +16 -0
- package/lib/git-diff.cjs +657 -58
- package/lib/git-diff.d.ts +38 -83
- package/lib/git-diff.js +152 -0
- package/lib/git-diff.mjs +23 -85
- package/lib/git-fix.cjs +685 -97
- package/lib/git-fix.mjs +14 -13
- package/lib/git-purge.cjs +3 -3
- package/lib/git-purge.d.cts +1 -0
- package/lib/git-purge.mjs +43 -37
- package/lib/index.cjs +7 -6
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -5
- package/lib/index.mjs +4 -4
- package/lib/npm-run-series.cjs +3 -3
- package/lib/npm-run-series.mjs +42 -36
- package/lib/package-resolutions-updater.cjs +5 -5
- package/lib/package-resolutions-updater.mjs +266 -309
- package/lib/print-directory-tree.cjs +275 -210
- package/lib/print-directory-tree.mjs +2 -2
- package/lib/ps/connected-domain.cjs +25 -2
- package/lib/ps/connected-domain.d.ts +10 -2
- package/lib/ps/connected-domain.js +5 -2
- package/lib/ps/connected-domain.mjs +8 -4
- package/lib/ps/index.cjs +345 -322
- package/lib/ps/index.d.mjs +1 -1
- package/lib/ps/index.js +1 -1
- package/lib/ps/index.mjs +179 -182
- package/lib/ps/isWin.cjs +24 -1
- package/lib/ps/isWin.d.ts +1 -1
- package/lib/ps/isWin.js +3 -1
- package/lib/ps/isWin.mjs +8 -4
- package/lib/ps/table-parser.cjs +167 -159
- package/lib/ps/table-parser.d.ts +5 -0
- package/lib/ps/table-parser.js +10 -4
- package/lib/ps/table-parser.mjs +9 -5
- package/lib/remove-module.cjs +262 -0
- package/lib/remove-module.d.mts +1 -0
- package/lib/remove-module.mjs +111 -0
- package/lib/rmpath.cjs +274 -0
- package/lib/rmpath.d.mts +3 -0
- package/lib/rmpath.mjs +108 -0
- package/lib/submodule-install.cjs +264 -86
- package/lib/submodule-install.mjs +51 -3
- package/lib/submodule-remove-cli.cjs +103 -0
- package/lib/submodule-remove-cli.d.ts +1 -0
- package/lib/submodule-remove-cli.js +31 -0
- package/lib/submodule-remove-cli.mjs +28 -0
- package/lib/submodule-remove.cjs +43 -0
- package/lib/submodule-remove.d.cts +2 -0
- package/lib/submodule-remove.mjs +6 -0
- package/lib/utils/chatgpt.cjs +383 -0
- package/lib/utils/chatgpt.d.ts +31 -0
- package/lib/utils/chatgpt.js +541 -0
- package/lib/utils/chatgpt.mjs +8 -0
- package/lib/{utils.cjs → utils/index.cjs} +1 -1
- package/lib/{utils.mjs → utils/index.mjs} +2 -2
- package/lib/yarn-reinstall.cjs +172 -38
- package/lib/yarn-reinstall.mjs +2 -2
- package/package.json +91 -71
- package/readme.md +43 -69
- package/releases/readme.md +36 -0
- package/test/README.md +101 -0
- package/test/package.json +2 -1
- package/test-project/readme.md +26 -0
- package/tmp/test-repo/README.md +35 -0
- package/tmp/test-repo/package.json +1 -1
- package/tmp/typedoc/readme.md +320 -0
- package/bin/bash-dummy +0 -56
- package/bin/bash-dummy.cmd +0 -25
- package/bin/dir-tree.cmd +0 -7
- package/bin/git-diff +0 -4
- package/bin/git-diff.cmd +0 -7
- package/bin/git-fix +0 -36
- package/bin/git-fix.cmd +0 -7
- package/bin/rmpath +0 -70
- package/bin/submodule-install.txt +0 -118
- package/bin/submodule-remove +0 -46
- package/bin/submodule.txt +0 -172
- package/lib/binary-collections-config.d.mts +0 -18
- package/lib/binary-collections-config.js +0 -39
- package/lib/binary-collections.d.mts +0 -137
- package/lib/binary-collections.d.ts +0 -137
- package/lib/changelog.d.mts +0 -2
- package/lib/changelog.js +0 -226
- package/lib/chunk-DPKAJKFO.mjs +0 -171
- package/lib/chunk-G3THLIDT.mjs +0 -200
- package/lib/chunk-W3ENOM53.mjs +0 -18
- package/lib/clean-github-actions-caches.d.mts +0 -169
- package/lib/clean-github-actions-caches.d.ts +0 -169
- package/lib/del-gradle.d.mts +0 -2
- package/lib/del-node-modules.d.mts +0 -2
- package/lib/del-ps.d.mts +0 -2
- package/lib/del-yarn-caches.d.mts +0 -2
- package/lib/find-node-modules-cli.d.mts +0 -1
- package/lib/find-node-modules.d.mts +0 -13
- package/lib/find-node-modules.js +0 -53
- package/lib/git/line-endings.d.mts +0 -83
- package/lib/git/line-endings.d.ts +0 -83
- package/lib/git/normalize.d.mts +0 -43
- package/lib/git/normalize.d.ts +0 -43
- package/lib/git/permissions.d.mts +0 -17
- package/lib/git/permissions.d.ts +0 -17
- package/lib/git/pull-strategy.d.mts +0 -15
- package/lib/git/pull-strategy.d.ts +0 -15
- package/lib/git/user-config.d.mts +0 -105
- package/lib/git/user-config.d.ts +0 -105
- package/lib/git/utils.d.mts +0 -69
- package/lib/git/utils.d.ts +0 -69
- package/lib/git-diff.d.mts +0 -84
- package/lib/git-fix.d.mts +0 -141
- package/lib/git-fix.d.ts +0 -141
- package/lib/git-purge.d.mts +0 -2
- package/lib/git-purge.js +0 -59
- package/lib/index.d.mts +0 -1
- package/lib/npm-run-series.d.mts +0 -1
- package/lib/npm-run-series.d.ts +0 -2
- package/lib/npm-run-series.js +0 -86
- package/lib/package-resolutions-updater.d.ts +0 -352
- package/lib/print-directory-tree.d.mts +0 -234
- package/lib/print-directory-tree.d.ts +0 -234
- package/lib/ps/connected-domain.d.mts +0 -3
- package/lib/ps/index.d.d.mts +0 -26
- package/lib/ps/index.d.d.ts +0 -26
- package/lib/ps/index.d.mts +0 -26
- package/lib/ps/isWin.d.mts +0 -3
- package/lib/ps/table-parser.d.mts +0 -3
- package/lib/submodule-install.d.mts +0 -121
- package/lib/submodule-install.d.ts +0 -121
- package/lib/utils.d.mts +0 -40
- package/lib/utils.js +0 -181
- package/lib/yarn-reinstall.d.mts +0 -49
- package/lib/yarn-reinstall.d.ts +0 -49
- package/src/package-resolutions-updater.mjs +0 -350
- package/src/print-directory-tree.cjs +0 -234
- package/src/ps/index.js +0 -286
- package/src/yarn-reinstall.cjs +0 -49
- /package/{bin → binaries}/nodekill +0 -0
- /package/{bin → binaries}/nodekill.cmd +0 -0
- /package/lib/{binary-collections-config.d.ts → binary-collections-config.d.cts} +0 -0
- /package/lib/{changelog.d.ts → changelog.d.cts} +0 -0
- /package/lib/{git-purge.d.ts → free-chatgpt.d.ts} +0 -0
- /package/lib/{git-diff.d.cts → npm-run-series.d.cts} +0 -0
- /package/lib/{utils.d.ts → utils/index.d.cts} +0 -0
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
require_utils
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-V3N3JEUF.mjs";
|
|
6
6
|
import {
|
|
7
7
|
__commonJS,
|
|
8
8
|
__dirname,
|
|
9
9
|
__require,
|
|
10
10
|
init_esm_shims
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-QQ4A6DLD.mjs";
|
|
12
12
|
|
|
13
13
|
// package.json
|
|
14
14
|
var require_package = __commonJS({
|
|
15
15
|
"package.json"(exports, module) {
|
|
16
16
|
module.exports = {
|
|
17
17
|
name: "binary-collections",
|
|
18
|
-
version: "2.0.
|
|
18
|
+
version: "2.0.10",
|
|
19
19
|
description: "Utility to clean any programming caches and more",
|
|
20
20
|
keywords: [
|
|
21
21
|
"cache",
|
|
@@ -28,10 +28,11 @@ var require_package = __commonJS({
|
|
|
28
28
|
},
|
|
29
29
|
license: "MIT",
|
|
30
30
|
author: {
|
|
31
|
-
email: "dimaslanjaka@gmail.com",
|
|
32
31
|
name: "dimaslanjaka",
|
|
32
|
+
email: "dimaslanjaka@gmail.com",
|
|
33
33
|
url: "https://webmanajemen.com"
|
|
34
34
|
},
|
|
35
|
+
type: "module",
|
|
35
36
|
main: "lib/index.js",
|
|
36
37
|
exports: {
|
|
37
38
|
".": {
|
|
@@ -43,145 +44,164 @@ var require_package = __commonJS({
|
|
|
43
44
|
default: "./lib/index.mjs",
|
|
44
45
|
types: "./lib/index.d.mts"
|
|
45
46
|
}
|
|
46
|
-
}
|
|
47
|
+
},
|
|
48
|
+
"./package.json": "./package.json"
|
|
47
49
|
},
|
|
48
50
|
types: "lib/index.d.ts",
|
|
49
51
|
files: [
|
|
50
|
-
"
|
|
52
|
+
"binaries",
|
|
51
53
|
"lib",
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
54
|
+
"package.json",
|
|
55
|
+
"docs-src/**/*.md",
|
|
56
|
+
"readme.md"
|
|
55
57
|
],
|
|
56
58
|
bin: {
|
|
57
59
|
"binary-collections": "lib/binary-collections.cjs",
|
|
60
|
+
"binary-executor": "binaries/binary-executor.cjs",
|
|
61
|
+
changelog: "lib/changelog.cjs",
|
|
62
|
+
chatgpt: "lib/free-chatgpt.cjs",
|
|
58
63
|
"clean-github-actions-cache": "lib/clean-github-actions-caches.cjs",
|
|
59
64
|
"clean-github-actions-caches": "lib/clean-github-actions-caches.cjs",
|
|
60
|
-
"clean-nodemodule": "
|
|
61
|
-
"clean-nodemodules": "
|
|
65
|
+
"clean-nodemodule": "binaries/clean-nodemodule.cjs",
|
|
66
|
+
"clean-nodemodules": "binaries/clean-nodemodules.cjs",
|
|
62
67
|
"clear-gh-caches": "lib/clean-github-actions-caches.cjs",
|
|
63
68
|
"clear-github-actions-cache": "lib/clean-github-actions-caches.cjs",
|
|
64
69
|
"clear-github-actions-caches": "lib/clean-github-actions-caches.cjs",
|
|
65
70
|
"del-gradle": "lib/del-gradle.cjs",
|
|
66
|
-
"del-node-modules": "lib/del-node-modules.
|
|
71
|
+
"del-node-modules": "lib/del-node-modules.cjs",
|
|
67
72
|
"del-nodemodules": "lib/del-node-modules.cjs",
|
|
68
73
|
"del-ps": "lib/del-ps.cjs",
|
|
69
|
-
"del-yarn-caches": "lib/del-yarn-caches.
|
|
74
|
+
"del-yarn-caches": "lib/del-yarn-caches.cjs",
|
|
70
75
|
"del-yarncaches": "lib/del-yarn-caches.cjs",
|
|
71
|
-
dev: "
|
|
76
|
+
dev: "binaries/dev.cjs",
|
|
72
77
|
"dir-tree": "lib/print-directory-tree.cjs",
|
|
73
|
-
empty: "
|
|
74
|
-
"find-node-modules": "lib/find-node-modules.
|
|
75
|
-
"
|
|
76
|
-
"git-diff": "lib/git-diff.cjs",
|
|
78
|
+
empty: "binaries/empty.cjs",
|
|
79
|
+
"find-node-modules": "lib/find-node-modules-cli.cjs",
|
|
80
|
+
"free-chatgpt": "lib/free-chatgpt.cjs",
|
|
81
|
+
"git-diff": "lib/git-diff-cli.cjs",
|
|
77
82
|
"git-fix": "lib/git-fix.cjs",
|
|
78
83
|
"git-purge": "lib/git-purge.cjs",
|
|
79
|
-
"git-reduce-size": "
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
nodekill: "bin/nodekill.ps1",
|
|
84
|
+
"git-reduce-size": "binaries/git-reduce-size.cjs",
|
|
85
|
+
javakill: "binaries/javakill.cjs",
|
|
86
|
+
"kill-process": "binaries/kill-process.cjs",
|
|
87
|
+
nodekill: "binaries/nodekill.cjs",
|
|
84
88
|
"npm-run-series": "lib/npm-run-series.cjs",
|
|
85
89
|
nrs: "lib/npm-run-series.cjs",
|
|
86
|
-
"package-resolutions-updater": "
|
|
90
|
+
"package-resolutions-updater": "lib/package-resolutions-updater.cjs",
|
|
87
91
|
"pkg-res-updater": "lib/package-resolutions-updater.cjs",
|
|
88
92
|
"pkg-resolutions-updater": "lib/package-resolutions-updater.cjs",
|
|
89
|
-
"print-directory-tree": "
|
|
93
|
+
"print-directory-tree": "lib/print-directory-tree.cjs",
|
|
90
94
|
"print-tree": "lib/print-directory-tree.cjs",
|
|
91
|
-
prod: "
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
+
prod: "binaries/prod.cjs",
|
|
96
|
+
"remove-module": "lib/remove-module.cjs",
|
|
97
|
+
rmfind: "binaries/rmfind.cjs",
|
|
98
|
+
rmpath: "lib/rmpath.cjs",
|
|
99
|
+
rmx: "binaries/rmx.cjs",
|
|
95
100
|
"run-s": "lib/npm-run-series.cjs",
|
|
96
101
|
"run-series": "lib/npm-run-series.cjs",
|
|
97
102
|
"submodule-install": "lib/submodule-install.cjs",
|
|
98
|
-
"submodule-remove": "
|
|
99
|
-
"submodule-token": "
|
|
100
|
-
"yarn-reinstall": "
|
|
103
|
+
"submodule-remove": "lib/submodule-remove-cli.cjs",
|
|
104
|
+
"submodule-token": "binaries/submodule-token.cjs",
|
|
105
|
+
"yarn-reinstall": "lib/yarn-reinstall.cjs"
|
|
101
106
|
},
|
|
102
107
|
scripts: {
|
|
103
|
-
|
|
104
|
-
build: "
|
|
105
|
-
|
|
106
|
-
"build:
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
build: "tsc -b tsconfig.build.json && npm run build:tsup && npm run postbuild",
|
|
109
|
+
"build:packages": "yarn workspaces foreach --worktree --exclude=binary-collections --no-private run build",
|
|
110
|
+
"build:rollup": "rollup -c rollup.config.js",
|
|
111
|
+
"build:tsup": "node build.tsup.js",
|
|
112
|
+
clean: "rimraf lib tmp/dist binaries",
|
|
113
|
+
pack: "node packer.cjs --yarn --filename=bin",
|
|
114
|
+
postbuild: "node -r ts-node/register -r dotenv/config build.exports.mjs && yarn run pack",
|
|
115
|
+
prepare: "husky",
|
|
116
|
+
test: 'npx jest --runInBand --forceExit --testTimeout=120000 --testPathIgnorePatterns="\\.mjs$"',
|
|
117
|
+
"test:coverage": "npm test --coverage --detectOpenHandles",
|
|
118
|
+
"test:esm": 'node --experimental-vm-modules node_modules/jest/bin/jest.js --runInBand --forceExit --testTimeout=120000 --testPathIgnorePatterns="\\.(ts|js|cjs)$"',
|
|
111
119
|
"test:nrs": "npm test -- nrs build:**",
|
|
112
|
-
|
|
120
|
+
"test:watch": "npm test --watch",
|
|
113
121
|
"update:ncu": "npx npm-check-updates -u -x jsdom,chalk,hexo,deepmerge-ts --enginesNode --root",
|
|
114
|
-
|
|
115
|
-
prepare: "husky"
|
|
122
|
+
"update:packer": "curl -L https://github.com/dimaslanjaka/nodejs-package-types/raw/main/packer.js > packer.cjs"
|
|
116
123
|
},
|
|
117
124
|
repository: {
|
|
118
125
|
type: "git",
|
|
119
126
|
url: "git+https://github.com/dimaslanjaka/bin"
|
|
120
127
|
},
|
|
121
128
|
dependencies: {
|
|
122
|
-
|
|
123
|
-
|
|
129
|
+
"ansi-colors": "^4.1.3",
|
|
130
|
+
axios: "^1.11.0",
|
|
131
|
+
dotenv: "^17.2.1",
|
|
124
132
|
execa: "^9.6.0",
|
|
125
|
-
"fs-extra": "^11.3.
|
|
126
|
-
"git-command-helper": "^2.0
|
|
133
|
+
"fs-extra": "^11.3.1",
|
|
134
|
+
"git-command-helper": "^2.1.0",
|
|
127
135
|
glob: "^11.0.3",
|
|
128
136
|
minimatch: "^10.0.3",
|
|
129
137
|
minimist: "^1.2.8",
|
|
130
138
|
"ps-node": "^0.1.6",
|
|
139
|
+
puppeteer: "^24.17.0",
|
|
140
|
+
"puppeteer-extra": "^3.3.6",
|
|
141
|
+
"puppeteer-extra-plugin-stealth": "^2.11.2",
|
|
131
142
|
remove: "^0.1.5",
|
|
132
|
-
"sbg-utility": "^2.0.
|
|
143
|
+
"sbg-utility": "^2.0.10",
|
|
133
144
|
upath: "^2.0.1",
|
|
134
|
-
yaml: "^2.8.
|
|
145
|
+
yaml: "^2.8.1",
|
|
135
146
|
yarn: "^1.22.22"
|
|
136
147
|
},
|
|
137
148
|
devDependencies: {
|
|
138
|
-
"@babel/core": "^7.28.
|
|
139
|
-
"@babel/preset-env": "^7.28.
|
|
149
|
+
"@babel/core": "^7.28.3",
|
|
150
|
+
"@babel/preset-env": "^7.28.3",
|
|
151
|
+
"@babel/preset-typescript": "^7.27.1",
|
|
140
152
|
"@eslint/eslintrc": "^3.3.1",
|
|
141
|
-
"@eslint/js": "^9.
|
|
153
|
+
"@eslint/js": "^9.34.0",
|
|
154
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
155
|
+
"@rollup/plugin-commonjs": "^28.0.6",
|
|
156
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
157
|
+
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
142
158
|
"@types/babel__core": "^7",
|
|
143
159
|
"@types/babel__preset-env": "^7",
|
|
144
160
|
"@types/eslint": "^9",
|
|
145
|
-
"@types/fs-extra": "^11
|
|
161
|
+
"@types/fs-extra": "^11",
|
|
146
162
|
"@types/jest": "^30.0.0",
|
|
147
163
|
"@types/minimist": "^1",
|
|
148
|
-
"@types/node": "^24.0
|
|
164
|
+
"@types/node": "^24.3.0",
|
|
149
165
|
"@types/prettier": "^3",
|
|
150
166
|
"@types/ps-node": "^0",
|
|
151
167
|
"@types/yargs": "^17",
|
|
152
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
153
|
-
"@typescript-eslint/parser": "^8.
|
|
154
|
-
"babel-jest": "^30.0.
|
|
155
|
-
"
|
|
168
|
+
"@typescript-eslint/eslint-plugin": "^8.40.0",
|
|
169
|
+
"@typescript-eslint/parser": "^8.40.0",
|
|
170
|
+
"babel-jest": "^30.0.5",
|
|
171
|
+
"browser-sync": "^3.0.4",
|
|
172
|
+
"cross-env": "^10.0.0",
|
|
156
173
|
"cross-spawn": "https://github.com/dimaslanjaka/node-cross-spawn/raw/private/release/cross-spawn.tgz",
|
|
157
|
-
eslint: "^9.
|
|
158
|
-
"eslint-config-prettier": "^10.1.
|
|
159
|
-
"eslint-plugin-prettier": "^5.5.
|
|
174
|
+
eslint: "^9.34.0",
|
|
175
|
+
"eslint-config-prettier": "^10.1.8",
|
|
176
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
160
177
|
globals: "^16.3.0",
|
|
178
|
+
gulp: "^5.0.1",
|
|
161
179
|
husky: "^9.1.7",
|
|
162
|
-
jest: "^30.0.
|
|
163
|
-
"lint-staged": "^16.1.
|
|
180
|
+
jest: "^30.0.5",
|
|
181
|
+
"lint-staged": "^16.1.5",
|
|
182
|
+
marked: "^16.2.0",
|
|
164
183
|
prettier: "^3.6.2",
|
|
165
184
|
rimraf: "^6.0.1",
|
|
166
|
-
|
|
185
|
+
rollup: "^4.48.1",
|
|
186
|
+
"ts-jest": "^29.4.1",
|
|
167
187
|
"ts-node": "^10.9.2",
|
|
168
188
|
tsup: "^8.5.0",
|
|
169
|
-
|
|
189
|
+
typedoc: "^0.28.11",
|
|
190
|
+
"typedoc-plugin-ga": "^1.0.5",
|
|
191
|
+
typescript: "^5.9.2"
|
|
170
192
|
},
|
|
171
|
-
|
|
172
|
-
|
|
193
|
+
directories: {
|
|
194
|
+
lib: "lib",
|
|
195
|
+
bin: "binaries"
|
|
173
196
|
},
|
|
174
197
|
workspaces: [
|
|
175
198
|
"packages/*"
|
|
176
199
|
],
|
|
177
|
-
directories: {
|
|
178
|
-
lib: "lib",
|
|
179
|
-
bin: "bin"
|
|
180
|
-
},
|
|
181
200
|
packageManager: "yarn@4.9.2",
|
|
182
201
|
resolutions: {
|
|
183
|
-
"
|
|
184
|
-
"
|
|
202
|
+
"cross-spawn": "https://github.com/dimaslanjaka/node-cross-spawn/raw/80999ac7a7031a81e11ddb5fab0f8ba433041c98/release/cross-spawn.tgz",
|
|
203
|
+
"git-command-helper": "https://github.com/dimaslanjaka/git-command-helper/raw/47133aa918c1292c15949c7f190be9cb302cd6f4/release/git-command-helper.tgz",
|
|
204
|
+
"sbg-utility": "https://github.com/dimaslanjaka/static-blog-generator/raw/f58af787eab404891d8394fe0570ce603e0d7308/packages/sbg-utility/release/sbg-utility.tgz"
|
|
185
205
|
}
|
|
186
206
|
};
|
|
187
207
|
}
|
|
@@ -193,10 +213,10 @@ var require_binary_collections = __commonJS({
|
|
|
193
213
|
init_esm_shims();
|
|
194
214
|
var { spawn } = __require("child_process");
|
|
195
215
|
var { glob } = __require("glob");
|
|
196
|
-
var path = __require("
|
|
216
|
+
var path = __require("upath");
|
|
197
217
|
var { getArgs } = require_utils();
|
|
198
218
|
var pkgJson = require_package();
|
|
199
|
-
var fs = __require("fs");
|
|
219
|
+
var fs = __require("fs-extra");
|
|
200
220
|
function showHelp() {
|
|
201
221
|
console.log("\u{1F680} Binary Collections - Dynamic Script Runner");
|
|
202
222
|
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");
|
|
@@ -217,6 +237,7 @@ var require_binary_collections = __commonJS({
|
|
|
217
237
|
}
|
|
218
238
|
function findScript(scriptName, searchDir = null) {
|
|
219
239
|
if (!searchDir) searchDir = __dirname;
|
|
240
|
+
let result;
|
|
220
241
|
const ignorePatterns = [
|
|
221
242
|
`**/*config*.{cjs,js,mjs}`,
|
|
222
243
|
`**/utils.{cjs,js,mjs}`,
|
|
@@ -233,15 +254,18 @@ var require_binary_collections = __commonJS({
|
|
|
233
254
|
absolute: true
|
|
234
255
|
});
|
|
235
256
|
if (files.length > 0) {
|
|
236
|
-
|
|
257
|
+
result = files[0];
|
|
237
258
|
} else {
|
|
238
259
|
if (pkgJson.bin[scriptName]) {
|
|
239
260
|
const find = [
|
|
240
261
|
path.join(searchDir, pkgJson.bin[scriptName]),
|
|
241
|
-
path.join(process.cwd(), "node_modules/binary-collections", pkgJson.bin[scriptName])
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
262
|
+
path.join(process.cwd(), "node_modules/binary-collections", pkgJson.bin[scriptName]),
|
|
263
|
+
path.join(__dirname, pkgJson.bin[scriptName]),
|
|
264
|
+
path.join(path.join(__dirname, ".."), pkgJson.bin[scriptName])
|
|
265
|
+
];
|
|
266
|
+
const filtered = find.filter((file) => fs.existsSync(file));
|
|
267
|
+
if (filtered.length > 0) {
|
|
268
|
+
result = filtered[0];
|
|
245
269
|
} else {
|
|
246
270
|
console.warn(`\u26A0\uFE0F Script "${scriptName}" not found in ${searchDir}.`);
|
|
247
271
|
console.warn(`\u{1F50D} Searched for: ${pattern} in ${searchDir}`);
|
|
@@ -251,9 +275,19 @@ var require_binary_collections = __commonJS({
|
|
|
251
275
|
} catch (error) {
|
|
252
276
|
console.error(`\u{1F50D} Error searching for script: ${error.message}`);
|
|
253
277
|
}
|
|
254
|
-
|
|
278
|
+
if (result && !result.includes("-cli")) {
|
|
279
|
+
const ext = path.extname(result);
|
|
280
|
+
const filename = path.basename(result, ext);
|
|
281
|
+
const cliFile = path.join(path.dirname(result), `${filename}-cli${ext}`);
|
|
282
|
+
if (fs.existsSync(cliFile)) {
|
|
283
|
+
result = cliFile;
|
|
284
|
+
console.log(`\u{1F50D} Found CLI version: ${cliFile}`);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
return result;
|
|
255
288
|
}
|
|
256
289
|
function executeScript(scriptPath, args) {
|
|
290
|
+
console.log(`\u{1F527} Executing script: ${scriptPath} args: ${args.join(" ")}`);
|
|
257
291
|
const child = spawn("node", [scriptPath, ...args], {
|
|
258
292
|
stdio: "inherit",
|
|
259
293
|
shell: true
|
|
@@ -269,11 +303,24 @@ var require_binary_collections = __commonJS({
|
|
|
269
303
|
function main() {
|
|
270
304
|
const args = getArgs();
|
|
271
305
|
const positional = args._ || [];
|
|
272
|
-
|
|
273
|
-
|
|
306
|
+
console.log(`\u{1F50D} Parsed arguments: ${JSON.stringify(args)}`);
|
|
307
|
+
if (positional.length === 0) {
|
|
308
|
+
return showHelp();
|
|
274
309
|
}
|
|
275
310
|
const scriptName = positional[0];
|
|
276
|
-
const scriptArgs =
|
|
311
|
+
const scriptArgs = [];
|
|
312
|
+
scriptArgs.push(...positional.slice(1));
|
|
313
|
+
Object.keys(args).forEach((key) => {
|
|
314
|
+
if (key !== "_") {
|
|
315
|
+
const value = args[key];
|
|
316
|
+
if (typeof value === "boolean" && value) {
|
|
317
|
+
scriptArgs.push(key.length === 1 ? `-${key}` : `--${key}`);
|
|
318
|
+
} else if (value !== true && value !== false) {
|
|
319
|
+
scriptArgs.push(key.length === 1 ? `-${key}` : `--${key}`);
|
|
320
|
+
scriptArgs.push(value);
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
});
|
|
277
324
|
const scriptPath = findScript(scriptName);
|
|
278
325
|
if (!scriptPath) {
|
|
279
326
|
console.error(`\u274C Error: Script "${scriptName}" not found.`);
|
package/lib/changelog.cjs
CHANGED
|
@@ -12,9 +12,9 @@ var init_cjs_shims = __esm({
|
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
|
|
15
|
-
// src/utils.
|
|
15
|
+
// src/utils/index.cjs
|
|
16
16
|
var require_utils = __commonJS({
|
|
17
|
-
"src/utils.
|
|
17
|
+
"src/utils/index.cjs"(exports2, module2) {
|
|
18
18
|
init_cjs_shims();
|
|
19
19
|
var fs2 = require("fs");
|
|
20
20
|
var path2 = require("upath");
|
|
@@ -137,7 +137,7 @@ var require_utils = __commonJS({
|
|
|
137
137
|
}
|
|
138
138
|
});
|
|
139
139
|
|
|
140
|
-
// src/changelog.
|
|
140
|
+
// src/changelog.cjs
|
|
141
141
|
init_cjs_shims();
|
|
142
142
|
var fs = require("fs");
|
|
143
143
|
var path = require("path");
|