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.
Files changed (253) hide show
  1. package/binaries/binary-executor.cjs +43 -0
  2. package/{bin → binaries}/clean-nodemodule +0 -0
  3. package/binaries/clean-nodemodule.cjs +43 -0
  4. package/binaries/clean-nodemodule.cmd +4 -0
  5. package/{bin → binaries}/clean-nodemodules +0 -0
  6. package/binaries/clean-nodemodules.cjs +43 -0
  7. package/binaries/clean-nodemodules.cmd +5 -0
  8. package/{bin → binaries}/dev +0 -0
  9. package/binaries/dev.cjs +43 -0
  10. package/{bin → binaries}/empty +0 -0
  11. package/binaries/empty.cjs +43 -0
  12. package/{bin → binaries}/git-reduce-size +0 -0
  13. package/binaries/git-reduce-size.cjs +43 -0
  14. package/binaries/javakill.cjs +43 -0
  15. package/{bin → binaries}/javakill.cmd +0 -0
  16. package/{bin → binaries}/kill-process +0 -0
  17. package/binaries/kill-process.cjs +43 -0
  18. package/binaries/nodekill.cjs +43 -0
  19. package/{bin → binaries}/nodekill.ps1 +0 -0
  20. package/{bin → binaries}/prod +0 -0
  21. package/binaries/prod.cjs +43 -0
  22. package/{bin → binaries}/rmfind +0 -0
  23. package/binaries/rmfind.cjs +43 -0
  24. package/{bin → binaries}/rmx +0 -0
  25. package/binaries/rmx.cjs +43 -0
  26. package/{bin → binaries}/submodule-token +0 -0
  27. package/binaries/submodule-token.cjs +43 -0
  28. package/docs-src/clean-github-actions-caches.md +26 -0
  29. package/docs-src/free-chatgpt.md +26 -0
  30. package/lib/binary-collections-config.cjs +3 -2
  31. package/lib/binary-collections-config.mjs +2 -2
  32. package/lib/binary-collections.cjs +452 -105
  33. package/lib/binary-collections.mjs +131 -84
  34. package/lib/changelog.cjs +3 -3
  35. package/lib/changelog.mjs +177 -171
  36. package/lib/chunk-4EWQC6GZ.mjs +382 -0
  37. package/lib/chunk-4ZI7BQKQ.mjs +381 -0
  38. package/lib/chunk-5J2BEPY5.mjs +83 -0
  39. package/lib/{chunk-4BYBVEYC.mjs → chunk-66PAU5PS.mjs} +5 -4
  40. package/lib/chunk-6HHJRKFB.mjs +59 -0
  41. package/lib/chunk-6S4NXESK.mjs +26 -0
  42. package/lib/{chunk-ZYAQRPUL.mjs → chunk-7YD7IPFF.mjs} +2 -2
  43. package/lib/{chunk-SH3L6HHV.mjs → chunk-A2JQXI5Z.mjs} +2 -2
  44. package/lib/{chunk-EGSSKVDH.mjs → chunk-A3VUZEJK.mjs} +1 -1
  45. package/lib/chunk-AGZYRDC2.mjs +323 -0
  46. package/lib/{chunk-VVEZVNIV.mjs → chunk-AI4CVPJ7.mjs} +6 -6
  47. package/lib/chunk-BDCHCWHD.mjs +136 -0
  48. package/lib/chunk-BEZKJ25G.mjs +140 -0
  49. package/lib/chunk-DI5MDPSN.mjs +386 -0
  50. package/lib/{chunk-ONIBBBQ3.mjs → chunk-E6FDDAOO.mjs} +4 -3
  51. package/lib/chunk-FKI7IEB5.mjs +172 -0
  52. package/lib/chunk-GJTGHXRA.mjs +356 -0
  53. package/lib/{chunk-YV7DO3YV.mjs → chunk-HLGOWBEO.mjs} +1 -1
  54. package/lib/chunk-HMRMTYZM.mjs +40 -0
  55. package/lib/chunk-HN52G2YL.mjs +305 -0
  56. package/lib/chunk-HO6GHCOB.mjs +385 -0
  57. package/lib/chunk-LEM5OMRP.mjs +384 -0
  58. package/lib/{chunk-YX5U7XDR.mjs → chunk-M3YIYRHT.mjs} +6 -5
  59. package/lib/chunk-O6SWBEOQ.mjs +81 -0
  60. package/lib/{chunk-JGR2NW6D.mjs → chunk-PDSXF5HY.mjs} +3 -3
  61. package/lib/{chunk-AASHBCRW.mjs → chunk-QQ4A6DLD.mjs} +8 -0
  62. package/lib/chunk-RCP7DHVY.mjs +190 -0
  63. package/lib/chunk-SBNDSKG5.mjs +136 -0
  64. package/lib/chunk-U6SO4QEV.mjs +320 -0
  65. package/lib/{chunk-APBWENF6.mjs → chunk-V3N3JEUF.mjs} +3 -3
  66. package/lib/chunk-XD6BJK6Q.mjs +351 -0
  67. package/lib/chunk-XVBFFVCJ.mjs +209 -0
  68. package/lib/chunk-YXSFGA2D.mjs +383 -0
  69. package/lib/clean-github-actions-caches.cjs +243 -148
  70. package/lib/clean-github-actions-caches.mjs +3 -2
  71. package/lib/del-gradle.cjs +2 -2
  72. package/lib/del-gradle.js +1 -1
  73. package/lib/del-gradle.mjs +2 -2
  74. package/lib/del-node-modules.cjs +2 -2
  75. package/lib/del-node-modules.js +1 -1
  76. package/lib/del-node-modules.mjs +2 -2
  77. package/lib/del-ps.cjs +29 -8
  78. package/lib/del-ps.js +2 -2
  79. package/lib/del-ps.mjs +7 -5
  80. package/lib/del-yarn-caches.cjs +26 -5
  81. package/lib/del-yarn-caches.js +38 -3
  82. package/lib/del-yarn-caches.mjs +6 -6
  83. package/lib/find-node-modules-cli.cjs +5 -4
  84. package/lib/find-node-modules-cli.js +1 -1
  85. package/lib/find-node-modules-cli.mjs +2 -2
  86. package/lib/find-node-modules.cjs +4 -3
  87. package/lib/{find-node-modules.d.ts → find-node-modules.d.cts} +1 -1
  88. package/lib/find-node-modules.mjs +2 -2
  89. package/lib/free-chatgpt.cjs +548 -0
  90. package/lib/free-chatgpt.js +51 -0
  91. package/lib/free-chatgpt.mjs +50 -0
  92. package/lib/git/gitattributes.cjs +1 -1
  93. package/lib/git/{gitattributes.d.mts → gitattributes.d.cts} +5 -7
  94. package/lib/git/gitattributes.mjs +2 -2
  95. package/lib/git/line-endings.cjs +297 -64
  96. package/lib/git/line-endings.mjs +4 -4
  97. package/lib/git/normalize.cjs +26 -36
  98. package/lib/git/normalize.mjs +2 -2
  99. package/lib/git/permissions.cjs +77 -11
  100. package/lib/git/permissions.mjs +3 -3
  101. package/lib/git/pull-strategy.cjs +76 -9
  102. package/lib/git/pull-strategy.mjs +3 -3
  103. package/lib/git/user-config.cjs +266 -83
  104. package/lib/git/user-config.mjs +4 -4
  105. package/lib/git/utils.cjs +40 -60
  106. package/lib/git/utils.mjs +2 -2
  107. package/lib/git-diff-cli.cjs +651 -0
  108. package/lib/git-diff-cli.d.ts +1 -0
  109. package/lib/git-diff-cli.js +15 -0
  110. package/lib/git-diff-cli.mjs +16 -0
  111. package/lib/git-diff.cjs +657 -58
  112. package/lib/git-diff.d.ts +38 -83
  113. package/lib/git-diff.js +152 -0
  114. package/lib/git-diff.mjs +23 -85
  115. package/lib/git-fix.cjs +685 -97
  116. package/lib/git-fix.mjs +14 -13
  117. package/lib/git-purge.cjs +3 -3
  118. package/lib/git-purge.d.cts +1 -0
  119. package/lib/git-purge.mjs +43 -37
  120. package/lib/index.cjs +7 -6
  121. package/lib/index.d.ts +1 -1
  122. package/lib/index.js +2 -5
  123. package/lib/index.mjs +4 -4
  124. package/lib/npm-run-series.cjs +3 -3
  125. package/lib/npm-run-series.mjs +42 -36
  126. package/lib/package-resolutions-updater.cjs +5 -5
  127. package/lib/package-resolutions-updater.mjs +266 -309
  128. package/lib/print-directory-tree.cjs +275 -210
  129. package/lib/print-directory-tree.mjs +2 -2
  130. package/lib/ps/connected-domain.cjs +25 -2
  131. package/lib/ps/connected-domain.d.ts +10 -2
  132. package/lib/ps/connected-domain.js +5 -2
  133. package/lib/ps/connected-domain.mjs +8 -4
  134. package/lib/ps/index.cjs +345 -322
  135. package/lib/ps/index.d.mjs +1 -1
  136. package/lib/ps/index.js +1 -1
  137. package/lib/ps/index.mjs +179 -182
  138. package/lib/ps/isWin.cjs +24 -1
  139. package/lib/ps/isWin.d.ts +1 -1
  140. package/lib/ps/isWin.js +3 -1
  141. package/lib/ps/isWin.mjs +8 -4
  142. package/lib/ps/table-parser.cjs +167 -159
  143. package/lib/ps/table-parser.d.ts +5 -0
  144. package/lib/ps/table-parser.js +10 -4
  145. package/lib/ps/table-parser.mjs +9 -5
  146. package/lib/remove-module.cjs +262 -0
  147. package/lib/remove-module.d.mts +1 -0
  148. package/lib/remove-module.mjs +111 -0
  149. package/lib/rmpath.cjs +274 -0
  150. package/lib/rmpath.d.mts +3 -0
  151. package/lib/rmpath.mjs +108 -0
  152. package/lib/submodule-install.cjs +264 -86
  153. package/lib/submodule-install.mjs +51 -3
  154. package/lib/submodule-remove-cli.cjs +103 -0
  155. package/lib/submodule-remove-cli.d.ts +1 -0
  156. package/lib/submodule-remove-cli.js +31 -0
  157. package/lib/submodule-remove-cli.mjs +28 -0
  158. package/lib/submodule-remove.cjs +43 -0
  159. package/lib/submodule-remove.d.cts +2 -0
  160. package/lib/submodule-remove.mjs +6 -0
  161. package/lib/utils/chatgpt.cjs +383 -0
  162. package/lib/utils/chatgpt.d.ts +31 -0
  163. package/lib/utils/chatgpt.js +541 -0
  164. package/lib/utils/chatgpt.mjs +8 -0
  165. package/lib/{utils.cjs → utils/index.cjs} +1 -1
  166. package/lib/{utils.mjs → utils/index.mjs} +2 -2
  167. package/lib/yarn-reinstall.cjs +172 -38
  168. package/lib/yarn-reinstall.mjs +2 -2
  169. package/package.json +91 -71
  170. package/readme.md +43 -69
  171. package/releases/readme.md +36 -0
  172. package/test/README.md +101 -0
  173. package/test/package.json +2 -1
  174. package/test-project/readme.md +26 -0
  175. package/tmp/test-repo/README.md +35 -0
  176. package/tmp/test-repo/package.json +1 -1
  177. package/tmp/typedoc/readme.md +320 -0
  178. package/bin/bash-dummy +0 -56
  179. package/bin/bash-dummy.cmd +0 -25
  180. package/bin/dir-tree.cmd +0 -7
  181. package/bin/git-diff +0 -4
  182. package/bin/git-diff.cmd +0 -7
  183. package/bin/git-fix +0 -36
  184. package/bin/git-fix.cmd +0 -7
  185. package/bin/rmpath +0 -70
  186. package/bin/submodule-install.txt +0 -118
  187. package/bin/submodule-remove +0 -46
  188. package/bin/submodule.txt +0 -172
  189. package/lib/binary-collections-config.d.mts +0 -18
  190. package/lib/binary-collections-config.js +0 -39
  191. package/lib/binary-collections.d.mts +0 -137
  192. package/lib/binary-collections.d.ts +0 -137
  193. package/lib/changelog.d.mts +0 -2
  194. package/lib/changelog.js +0 -226
  195. package/lib/chunk-DPKAJKFO.mjs +0 -171
  196. package/lib/chunk-G3THLIDT.mjs +0 -200
  197. package/lib/chunk-W3ENOM53.mjs +0 -18
  198. package/lib/clean-github-actions-caches.d.mts +0 -169
  199. package/lib/clean-github-actions-caches.d.ts +0 -169
  200. package/lib/del-gradle.d.mts +0 -2
  201. package/lib/del-node-modules.d.mts +0 -2
  202. package/lib/del-ps.d.mts +0 -2
  203. package/lib/del-yarn-caches.d.mts +0 -2
  204. package/lib/find-node-modules-cli.d.mts +0 -1
  205. package/lib/find-node-modules.d.mts +0 -13
  206. package/lib/find-node-modules.js +0 -53
  207. package/lib/git/line-endings.d.mts +0 -83
  208. package/lib/git/line-endings.d.ts +0 -83
  209. package/lib/git/normalize.d.mts +0 -43
  210. package/lib/git/normalize.d.ts +0 -43
  211. package/lib/git/permissions.d.mts +0 -17
  212. package/lib/git/permissions.d.ts +0 -17
  213. package/lib/git/pull-strategy.d.mts +0 -15
  214. package/lib/git/pull-strategy.d.ts +0 -15
  215. package/lib/git/user-config.d.mts +0 -105
  216. package/lib/git/user-config.d.ts +0 -105
  217. package/lib/git/utils.d.mts +0 -69
  218. package/lib/git/utils.d.ts +0 -69
  219. package/lib/git-diff.d.mts +0 -84
  220. package/lib/git-fix.d.mts +0 -141
  221. package/lib/git-fix.d.ts +0 -141
  222. package/lib/git-purge.d.mts +0 -2
  223. package/lib/git-purge.js +0 -59
  224. package/lib/index.d.mts +0 -1
  225. package/lib/npm-run-series.d.mts +0 -1
  226. package/lib/npm-run-series.d.ts +0 -2
  227. package/lib/npm-run-series.js +0 -86
  228. package/lib/package-resolutions-updater.d.ts +0 -352
  229. package/lib/print-directory-tree.d.mts +0 -234
  230. package/lib/print-directory-tree.d.ts +0 -234
  231. package/lib/ps/connected-domain.d.mts +0 -3
  232. package/lib/ps/index.d.d.mts +0 -26
  233. package/lib/ps/index.d.d.ts +0 -26
  234. package/lib/ps/index.d.mts +0 -26
  235. package/lib/ps/isWin.d.mts +0 -3
  236. package/lib/ps/table-parser.d.mts +0 -3
  237. package/lib/submodule-install.d.mts +0 -121
  238. package/lib/submodule-install.d.ts +0 -121
  239. package/lib/utils.d.mts +0 -40
  240. package/lib/utils.js +0 -181
  241. package/lib/yarn-reinstall.d.mts +0 -49
  242. package/lib/yarn-reinstall.d.ts +0 -49
  243. package/src/package-resolutions-updater.mjs +0 -350
  244. package/src/print-directory-tree.cjs +0 -234
  245. package/src/ps/index.js +0 -286
  246. package/src/yarn-reinstall.cjs +0 -49
  247. /package/{bin → binaries}/nodekill +0 -0
  248. /package/{bin → binaries}/nodekill.cmd +0 -0
  249. /package/lib/{binary-collections-config.d.ts → binary-collections-config.d.cts} +0 -0
  250. /package/lib/{changelog.d.ts → changelog.d.cts} +0 -0
  251. /package/lib/{git-purge.d.ts → free-chatgpt.d.ts} +0 -0
  252. /package/lib/{git-diff.d.cts → npm-run-series.d.cts} +0 -0
  253. /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-APBWENF6.mjs";
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-AASHBCRW.mjs";
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.9",
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
- "bin",
52
+ "binaries",
51
53
  "lib",
52
- "index.js",
53
- "!test",
54
- "package.json"
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": "bin/clean-nodemodule",
61
- "clean-nodemodules": "bin/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.mjs",
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.mjs",
74
+ "del-yarn-caches": "lib/del-yarn-caches.cjs",
70
75
  "del-yarncaches": "lib/del-yarn-caches.cjs",
71
- dev: "bin/dev",
76
+ dev: "binaries/dev.cjs",
72
77
  "dir-tree": "lib/print-directory-tree.cjs",
73
- empty: "bin/empty",
74
- "find-node-modules": "lib/find-node-modules.mjs",
75
- "find-node-modules-cli": "lib/find-node-modules-cli.mjs",
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": "bin/git-reduce-size",
80
- index: "lib/index.mjs",
81
- javakill: "bin/javakill.cmd",
82
- "kill-process": "bin/kill-process",
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": "src/package-resolutions-updater.mjs",
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": "src/print-directory-tree.cjs",
93
+ "print-directory-tree": "lib/print-directory-tree.cjs",
90
94
  "print-tree": "lib/print-directory-tree.cjs",
91
- prod: "bin/prod",
92
- rmfind: "bin/rmfind",
93
- rmpath: "bin/rmpath",
94
- rmx: "bin/rmx",
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": "bin/submodule-remove",
99
- "submodule-token": "bin/submodule-token",
100
- "yarn-reinstall": "src/yarn-reinstall.cjs"
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
- "update:packer": "curl -L https://github.com/dimaslanjaka/nodejs-package-types/raw/main/packer.js > packer.js",
104
- build: "node build.tsup.js && tsc -b tsconfig.build.json && npm run postbuild",
105
- postbuild: "node -r ts-node/register -r dotenv/config build.js && yarn run pack",
106
- "build:packages": "yarn workspaces foreach --worktree --no-private run build",
107
- test: "npx jest --runInBand --forceExit",
108
- "test:watch": "npm test --watch",
109
- "test:coverage": "npm test --coverage",
110
- "test:debug": "npm test -- --detectOpenHandles",
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
- pack: "node packer.js --yarn --filename=bin",
120
+ "test:watch": "npm test --watch",
113
121
  "update:ncu": "npx npm-check-updates -u -x jsdom,chalk,hexo,deepmerge-ts --enginesNode --root",
114
- clean: "rimraf lib",
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
- axios: "^1.10.0",
123
- dotenv: "^17.2.0",
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.0",
126
- "git-command-helper": "^2.0.2",
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.8",
143
+ "sbg-utility": "^2.0.10",
133
144
  upath: "^2.0.1",
134
- yaml: "^2.8.0",
145
+ yaml: "^2.8.1",
135
146
  yarn: "^1.22.22"
136
147
  },
137
148
  devDependencies: {
138
- "@babel/core": "^7.28.0",
139
- "@babel/preset-env": "^7.28.0",
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.30.1",
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.0.4",
161
+ "@types/fs-extra": "^11",
146
162
  "@types/jest": "^30.0.0",
147
163
  "@types/minimist": "^1",
148
- "@types/node": "^24.0.10",
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.36.0",
153
- "@typescript-eslint/parser": "^8.36.0",
154
- "babel-jest": "^30.0.4",
155
- "cross-env": "^7.0.3",
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.30.1",
158
- "eslint-config-prettier": "^10.1.5",
159
- "eslint-plugin-prettier": "^5.5.1",
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.4",
163
- "lint-staged": "^16.1.2",
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
- "ts-jest": "^29.4.0",
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
- typescript: "^5.8.3"
189
+ typedoc: "^0.28.11",
190
+ "typedoc-plugin-ga": "^1.0.5",
191
+ typescript: "^5.9.2"
170
192
  },
171
- optionalDependencies: {
172
- "ansi-colors": "^4.1.3"
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
- "sbg-utility": "https://github.com/dimaslanjaka/static-blog-generator/raw/7696e66ab84f319909c5dab9054303e91f898454/packages/sbg-utility/release/sbg-utility.tgz",
184
- "cross-spawn": "https://github.com/dimaslanjaka/node-cross-spawn/raw/80999ac7a7031a81e11ddb5fab0f8ba433041c98/release/cross-spawn.tgz"
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("path");
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
- return files[0];
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
- ].filter((file) => fs.existsSync(file));
243
- if (find.length > 0) {
244
- return find[0];
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
- return null;
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
- if (positional.length === 0 || positional.length === 1 && (args.help || args.h)) {
273
- showHelp();
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 = positional.slice(1);
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.js
15
+ // src/utils/index.cjs
16
16
  var require_utils = __commonJS({
17
- "src/utils.js"(exports2, module2) {
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.js
140
+ // src/changelog.cjs
141
141
  init_cjs_shims();
142
142
  var fs = require("fs");
143
143
  var path = require("path");