@xylabs/ts-scripts-yarn3 3.15.15 → 4.0.0-rc.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 (353) hide show
  1. package/dist/actions/compile.mjs +3 -2
  2. package/dist/actions/compile.mjs.map +1 -1
  3. package/dist/actions/index.mjs +96 -287
  4. package/dist/actions/index.mjs.map +1 -1
  5. package/dist/actions/package/compile/compile.mjs +57 -259
  6. package/dist/actions/package/compile/compile.mjs.map +1 -1
  7. package/dist/actions/package/compile/index.mjs +57 -259
  8. package/dist/actions/package/compile/index.mjs.map +1 -1
  9. package/dist/actions/package/compile/packageCompileTsc.mjs +1 -1
  10. package/dist/actions/package/compile/packageCompileTsc.mjs.map +1 -1
  11. package/dist/actions/package/compile/packageCompileTscTypes.mjs +2 -36
  12. package/dist/actions/package/compile/packageCompileTscTypes.mjs.map +1 -1
  13. package/dist/actions/package/compile/packageCompileTsup.mjs +54 -339
  14. package/dist/actions/package/compile/packageCompileTsup.mjs.map +1 -1
  15. package/dist/actions/package/index.mjs +72 -277
  16. package/dist/actions/package/index.mjs.map +1 -1
  17. package/dist/actions/package/recompile.mjs +58 -263
  18. package/dist/actions/package/recompile.mjs.map +1 -1
  19. package/dist/actions/recompile.mjs +14 -1
  20. package/dist/actions/recompile.mjs.map +1 -1
  21. package/dist/bin/package/compile-only.mjs +59 -261
  22. package/dist/bin/package/compile-only.mjs.map +1 -1
  23. package/dist/bin/package/compile-tsup.mjs +56 -341
  24. package/dist/bin/package/compile-tsup.mjs.map +1 -1
  25. package/dist/bin/package/compile.mjs +59 -261
  26. package/dist/bin/package/compile.mjs.map +1 -1
  27. package/dist/bin/package/recompile.mjs +60 -265
  28. package/dist/bin/package/recompile.mjs.map +1 -1
  29. package/dist/bin/xy-ts.mjs +17 -3
  30. package/dist/bin/xy-ts.mjs.map +1 -1
  31. package/dist/bin/xy.mjs +17 -3
  32. package/dist/bin/xy.mjs.map +1 -1
  33. package/dist/index.d.ts +1 -1
  34. package/dist/index.mjs +106 -297
  35. package/dist/index.mjs.map +1 -1
  36. package/dist/xy/index.mjs +17 -3
  37. package/dist/xy/index.mjs.map +1 -1
  38. package/dist/xy/xy.mjs +17 -3
  39. package/dist/xy/xy.mjs.map +1 -1
  40. package/dist/xy/xyBuildCommands.mjs +17 -3
  41. package/dist/xy/xyBuildCommands.mjs.map +1 -1
  42. package/package.json +10 -20
  43. package/src/actions/compile.ts +2 -2
  44. package/src/actions/package/compile/XyConfig.ts +2 -2
  45. package/src/actions/package/compile/packageCompileTsc.ts +1 -1
  46. package/src/actions/package/compile/packageCompileTscTypes.ts +3 -8
  47. package/src/actions/package/compile/packageCompileTsup.ts +54 -130
  48. package/src/actions/package/recompile.ts +1 -1
  49. package/src/actions/recompile.ts +2 -1
  50. package/tsup.config.ts +1 -1
  51. package/dist/actions/build.cjs +0 -208
  52. package/dist/actions/build.cjs.map +0 -1
  53. package/dist/actions/clean-docs.cjs +0 -74
  54. package/dist/actions/clean-docs.cjs.map +0 -1
  55. package/dist/actions/clean-eslint.cjs +0 -53
  56. package/dist/actions/clean-eslint.cjs.map +0 -1
  57. package/dist/actions/clean-jest.cjs +0 -147
  58. package/dist/actions/clean-jest.cjs.map +0 -1
  59. package/dist/actions/clean.cjs +0 -192
  60. package/dist/actions/clean.cjs.map +0 -1
  61. package/dist/actions/compile.cjs +0 -217
  62. package/dist/actions/compile.cjs.map +0 -1
  63. package/dist/actions/copy-assets.cjs +0 -121
  64. package/dist/actions/copy-assets.cjs.map +0 -1
  65. package/dist/actions/cycle.cjs +0 -156
  66. package/dist/actions/cycle.cjs.map +0 -1
  67. package/dist/actions/dead.cjs +0 -148
  68. package/dist/actions/dead.cjs.map +0 -1
  69. package/dist/actions/deploy-major.cjs +0 -160
  70. package/dist/actions/deploy-major.cjs.map +0 -1
  71. package/dist/actions/deploy-minor.cjs +0 -160
  72. package/dist/actions/deploy-minor.cjs.map +0 -1
  73. package/dist/actions/deploy-next.cjs +0 -160
  74. package/dist/actions/deploy-next.cjs.map +0 -1
  75. package/dist/actions/deploy.cjs +0 -160
  76. package/dist/actions/deploy.cjs.map +0 -1
  77. package/dist/actions/deps.cjs +0 -205
  78. package/dist/actions/deps.cjs.map +0 -1
  79. package/dist/actions/dupdeps.cjs +0 -226
  80. package/dist/actions/dupdeps.cjs.map +0 -1
  81. package/dist/actions/fix.cjs +0 -149
  82. package/dist/actions/fix.cjs.map +0 -1
  83. package/dist/actions/gen-docs.cjs +0 -186
  84. package/dist/actions/gen-docs.cjs.map +0 -1
  85. package/dist/actions/gitignore-gen.cjs +0 -138
  86. package/dist/actions/gitignore-gen.cjs.map +0 -1
  87. package/dist/actions/gitlint-fix.cjs +0 -69
  88. package/dist/actions/gitlint-fix.cjs.map +0 -1
  89. package/dist/actions/gitlint.cjs +0 -84
  90. package/dist/actions/gitlint.cjs.map +0 -1
  91. package/dist/actions/index.cjs +0 -2600
  92. package/dist/actions/index.cjs.map +0 -1
  93. package/dist/actions/license.cjs +0 -133
  94. package/dist/actions/license.cjs.map +0 -1
  95. package/dist/actions/lint-clean.cjs +0 -227
  96. package/dist/actions/lint-clean.cjs.map +0 -1
  97. package/dist/actions/lint-profile.cjs +0 -153
  98. package/dist/actions/lint-profile.cjs.map +0 -1
  99. package/dist/actions/lint.cjs +0 -217
  100. package/dist/actions/lint.cjs.map +0 -1
  101. package/dist/actions/npmignore-gen.cjs +0 -138
  102. package/dist/actions/npmignore-gen.cjs.map +0 -1
  103. package/dist/actions/package/clean-outputs.cjs +0 -56
  104. package/dist/actions/package/clean-outputs.cjs.map +0 -1
  105. package/dist/actions/package/clean-typescript.cjs +0 -56
  106. package/dist/actions/package/clean-typescript.cjs.map +0 -1
  107. package/dist/actions/package/clean.cjs +0 -83
  108. package/dist/actions/package/clean.cjs.map +0 -1
  109. package/dist/actions/package/compile/XyConfig.cjs +0 -19
  110. package/dist/actions/package/compile/XyConfig.cjs.map +0 -1
  111. package/dist/actions/package/compile/buildEntries.cjs +0 -68
  112. package/dist/actions/package/compile/buildEntries.cjs.map +0 -1
  113. package/dist/actions/package/compile/compile.cjs +0 -565
  114. package/dist/actions/package/compile/compile.cjs.map +0 -1
  115. package/dist/actions/package/compile/copyTypeFiles.cjs +0 -60
  116. package/dist/actions/package/compile/copyTypeFiles.cjs.map +0 -1
  117. package/dist/actions/package/compile/getCompilerOptions.cjs +0 -67
  118. package/dist/actions/package/compile/getCompilerOptions.cjs.map +0 -1
  119. package/dist/actions/package/compile/index.cjs +0 -571
  120. package/dist/actions/package/compile/index.cjs.map +0 -1
  121. package/dist/actions/package/compile/inputs.cjs +0 -79
  122. package/dist/actions/package/compile/inputs.cjs.map +0 -1
  123. package/dist/actions/package/compile/packageCompileTsc.cjs +0 -164
  124. package/dist/actions/package/compile/packageCompileTsc.cjs.map +0 -1
  125. package/dist/actions/package/compile/packageCompileTscTypes.cjs +0 -199
  126. package/dist/actions/package/compile/packageCompileTscTypes.cjs.map +0 -1
  127. package/dist/actions/package/compile/packageCompileTsup.cjs +0 -521
  128. package/dist/actions/package/compile/packageCompileTsup.cjs.map +0 -1
  129. package/dist/actions/package/copy-assets.cjs +0 -88
  130. package/dist/actions/package/copy-assets.cjs.map +0 -1
  131. package/dist/actions/package/deps.cjs +0 -214
  132. package/dist/actions/package/deps.cjs.map +0 -1
  133. package/dist/actions/package/gen-docs.cjs +0 -148
  134. package/dist/actions/package/gen-docs.cjs.map +0 -1
  135. package/dist/actions/package/index.cjs +0 -968
  136. package/dist/actions/package/index.cjs.map +0 -1
  137. package/dist/actions/package/publint.cjs +0 -80
  138. package/dist/actions/package/publint.cjs.map +0 -1
  139. package/dist/actions/package/recompile.cjs +0 -617
  140. package/dist/actions/package/recompile.cjs.map +0 -1
  141. package/dist/actions/publint.cjs +0 -237
  142. package/dist/actions/publint.cjs.map +0 -1
  143. package/dist/actions/rebuild.cjs +0 -148
  144. package/dist/actions/rebuild.cjs.map +0 -1
  145. package/dist/actions/recompile.cjs +0 -232
  146. package/dist/actions/recompile.cjs.map +0 -1
  147. package/dist/actions/reinstall.cjs +0 -183
  148. package/dist/actions/reinstall.cjs.map +0 -1
  149. package/dist/actions/relint.cjs +0 -185
  150. package/dist/actions/relint.cjs.map +0 -1
  151. package/dist/actions/retest.cjs +0 -154
  152. package/dist/actions/retest.cjs.map +0 -1
  153. package/dist/actions/sonar.cjs +0 -149
  154. package/dist/actions/sonar.cjs.map +0 -1
  155. package/dist/actions/statics.cjs +0 -234
  156. package/dist/actions/statics.cjs.map +0 -1
  157. package/dist/actions/test.cjs +0 -147
  158. package/dist/actions/test.cjs.map +0 -1
  159. package/dist/actions/up.cjs +0 -144
  160. package/dist/actions/up.cjs.map +0 -1
  161. package/dist/actions/updo.cjs +0 -152
  162. package/dist/actions/updo.cjs.map +0 -1
  163. package/dist/actions/upplug.cjs +0 -172
  164. package/dist/actions/upplug.cjs.map +0 -1
  165. package/dist/actions/upyarn.cjs +0 -148
  166. package/dist/actions/upyarn.cjs.map +0 -1
  167. package/dist/actions/yarn3only.cjs +0 -106
  168. package/dist/actions/yarn3only.cjs.map +0 -1
  169. package/dist/bin/build.cjs +0 -39
  170. package/dist/bin/build.cjs.map +0 -1
  171. package/dist/bin/clean.cjs +0 -39
  172. package/dist/bin/clean.cjs.map +0 -1
  173. package/dist/bin/compile-only.cjs +0 -39
  174. package/dist/bin/compile-only.cjs.map +0 -1
  175. package/dist/bin/compile.cjs +0 -39
  176. package/dist/bin/compile.cjs.map +0 -1
  177. package/dist/bin/cycle.cjs +0 -39
  178. package/dist/bin/cycle.cjs.map +0 -1
  179. package/dist/bin/dead.cjs +0 -39
  180. package/dist/bin/dead.cjs.map +0 -1
  181. package/dist/bin/deploy-major.cjs +0 -39
  182. package/dist/bin/deploy-major.cjs.map +0 -1
  183. package/dist/bin/deploy-minor.cjs +0 -39
  184. package/dist/bin/deploy-minor.cjs.map +0 -1
  185. package/dist/bin/deploy-next.cjs +0 -39
  186. package/dist/bin/deploy-next.cjs.map +0 -1
  187. package/dist/bin/deploy.cjs +0 -39
  188. package/dist/bin/deploy.cjs.map +0 -1
  189. package/dist/bin/deps.cjs +0 -39
  190. package/dist/bin/deps.cjs.map +0 -1
  191. package/dist/bin/fix.cjs +0 -39
  192. package/dist/bin/fix.cjs.map +0 -1
  193. package/dist/bin/gen-docs.cjs +0 -39
  194. package/dist/bin/gen-docs.cjs.map +0 -1
  195. package/dist/bin/gitlint-fix.cjs +0 -39
  196. package/dist/bin/gitlint-fix.cjs.map +0 -1
  197. package/dist/bin/gitlint.cjs +0 -39
  198. package/dist/bin/gitlint.cjs.map +0 -1
  199. package/dist/bin/license.cjs +0 -39
  200. package/dist/bin/license.cjs.map +0 -1
  201. package/dist/bin/lint-clean.cjs +0 -39
  202. package/dist/bin/lint-clean.cjs.map +0 -1
  203. package/dist/bin/lint-fast.cjs +0 -39
  204. package/dist/bin/lint-fast.cjs.map +0 -1
  205. package/dist/bin/lint-profile.cjs +0 -39
  206. package/dist/bin/lint-profile.cjs.map +0 -1
  207. package/dist/bin/lint.cjs +0 -39
  208. package/dist/bin/lint.cjs.map +0 -1
  209. package/dist/bin/package/clean-outputs.cjs +0 -51
  210. package/dist/bin/package/clean-outputs.cjs.map +0 -1
  211. package/dist/bin/package/clean-typescript.cjs +0 -51
  212. package/dist/bin/package/clean-typescript.cjs.map +0 -1
  213. package/dist/bin/package/clean.cjs +0 -76
  214. package/dist/bin/package/clean.cjs.map +0 -1
  215. package/dist/bin/package/compile-only.cjs +0 -564
  216. package/dist/bin/package/compile-only.cjs.map +0 -1
  217. package/dist/bin/package/compile-tsup.cjs +0 -519
  218. package/dist/bin/package/compile-tsup.cjs.map +0 -1
  219. package/dist/bin/package/compile.cjs +0 -567
  220. package/dist/bin/package/compile.cjs.map +0 -1
  221. package/dist/bin/package/copy-assets-cjs.cjs +0 -86
  222. package/dist/bin/package/copy-assets-cjs.cjs.map +0 -1
  223. package/dist/bin/package/copy-assets-esm.cjs +0 -86
  224. package/dist/bin/package/copy-assets-esm.cjs.map +0 -1
  225. package/dist/bin/package/deps.cjs +0 -208
  226. package/dist/bin/package/deps.cjs.map +0 -1
  227. package/dist/bin/package/gen-docs.cjs +0 -143
  228. package/dist/bin/package/gen-docs.cjs.map +0 -1
  229. package/dist/bin/package/publint.cjs +0 -77
  230. package/dist/bin/package/publint.cjs.map +0 -1
  231. package/dist/bin/package/recompile.cjs +0 -611
  232. package/dist/bin/package/recompile.cjs.map +0 -1
  233. package/dist/bin/publint.cjs +0 -39
  234. package/dist/bin/publint.cjs.map +0 -1
  235. package/dist/bin/rebuild.cjs +0 -39
  236. package/dist/bin/rebuild.cjs.map +0 -1
  237. package/dist/bin/recompile.cjs +0 -39
  238. package/dist/bin/recompile.cjs.map +0 -1
  239. package/dist/bin/reinstall.cjs +0 -39
  240. package/dist/bin/reinstall.cjs.map +0 -1
  241. package/dist/bin/relint.cjs +0 -39
  242. package/dist/bin/relint.cjs.map +0 -1
  243. package/dist/bin/sonar.cjs +0 -39
  244. package/dist/bin/sonar.cjs.map +0 -1
  245. package/dist/bin/test.cjs +0 -39
  246. package/dist/bin/test.cjs.map +0 -1
  247. package/dist/bin/up.cjs +0 -39
  248. package/dist/bin/up.cjs.map +0 -1
  249. package/dist/bin/updo.cjs +0 -39
  250. package/dist/bin/updo.cjs.map +0 -1
  251. package/dist/bin/upplug.cjs +0 -39
  252. package/dist/bin/upplug.cjs.map +0 -1
  253. package/dist/bin/upyarn.cjs +0 -39
  254. package/dist/bin/upyarn.cjs.map +0 -1
  255. package/dist/bin/xy-ts.cjs +0 -1890
  256. package/dist/bin/xy-ts.cjs.map +0 -1
  257. package/dist/bin/xy.cjs +0 -1890
  258. package/dist/bin/xy.cjs.map +0 -1
  259. package/dist/bin/yarn3only.cjs +0 -39
  260. package/dist/bin/yarn3only.cjs.map +0 -1
  261. package/dist/index.cjs +0 -3129
  262. package/dist/index.cjs.map +0 -1
  263. package/dist/index.d.cts +0 -359
  264. package/dist/lib/checkResult.cjs +0 -52
  265. package/dist/lib/checkResult.cjs.map +0 -1
  266. package/dist/lib/createBuildConfig.cjs +0 -93
  267. package/dist/lib/createBuildConfig.cjs.map +0 -1
  268. package/dist/lib/defaultBuildConfig.cjs +0 -52
  269. package/dist/lib/defaultBuildConfig.cjs.map +0 -1
  270. package/dist/lib/dependencies/DuplicateDetector.cjs +0 -124
  271. package/dist/lib/dependencies/DuplicateDetector.cjs.map +0 -1
  272. package/dist/lib/dependencies/detectDuplicateDependencies.cjs +0 -207
  273. package/dist/lib/dependencies/detectDuplicateDependencies.cjs.map +0 -1
  274. package/dist/lib/dependencies/index.cjs +0 -211
  275. package/dist/lib/dependencies/index.cjs.map +0 -1
  276. package/dist/lib/file/ReadFileSyncOptions.cjs +0 -33
  277. package/dist/lib/file/ReadFileSyncOptions.cjs.map +0 -1
  278. package/dist/lib/file/constants.cjs +0 -34
  279. package/dist/lib/file/constants.cjs.map +0 -1
  280. package/dist/lib/file/fileLines.cjs +0 -58
  281. package/dist/lib/file/fileLines.cjs.map +0 -1
  282. package/dist/lib/file/index.cjs +0 -74
  283. package/dist/lib/file/index.cjs.map +0 -1
  284. package/dist/lib/file/tryReadFileSync.cjs +0 -42
  285. package/dist/lib/file/tryReadFileSync.cjs.map +0 -1
  286. package/dist/lib/generateIgnoreFiles.cjs +0 -132
  287. package/dist/lib/generateIgnoreFiles.cjs.map +0 -1
  288. package/dist/lib/index.cjs +0 -614
  289. package/dist/lib/index.cjs.map +0 -1
  290. package/dist/lib/jsonFormatters.cjs +0 -37
  291. package/dist/lib/jsonFormatters.cjs.map +0 -1
  292. package/dist/lib/loadConfig.cjs +0 -59
  293. package/dist/lib/loadConfig.cjs.map +0 -1
  294. package/dist/lib/parsedPackageJSON.cjs +0 -37
  295. package/dist/lib/parsedPackageJSON.cjs.map +0 -1
  296. package/dist/lib/processEx.cjs +0 -72
  297. package/dist/lib/processEx.cjs.map +0 -1
  298. package/dist/lib/runSteps.cjs +0 -134
  299. package/dist/lib/runSteps.cjs.map +0 -1
  300. package/dist/lib/runStepsAsync.cjs +0 -147
  301. package/dist/lib/runStepsAsync.cjs.map +0 -1
  302. package/dist/lib/runXy.cjs +0 -150
  303. package/dist/lib/runXy.cjs.map +0 -1
  304. package/dist/lib/runXyWithWarning.cjs +0 -49
  305. package/dist/lib/runXyWithWarning.cjs.map +0 -1
  306. package/dist/lib/safeExit.cjs +0 -100
  307. package/dist/lib/safeExit.cjs.map +0 -1
  308. package/dist/lib/string/empty.cjs +0 -35
  309. package/dist/lib/string/empty.cjs.map +0 -1
  310. package/dist/lib/string/index.cjs +0 -45
  311. package/dist/lib/string/index.cjs.map +0 -1
  312. package/dist/lib/string/union.cjs +0 -35
  313. package/dist/lib/string/union.cjs.map +0 -1
  314. package/dist/lib/withErrnoException.cjs +0 -41
  315. package/dist/lib/withErrnoException.cjs.map +0 -1
  316. package/dist/lib/withError.cjs +0 -34
  317. package/dist/lib/withError.cjs.map +0 -1
  318. package/dist/lib/yarn/index.cjs +0 -93
  319. package/dist/lib/yarn/index.cjs.map +0 -1
  320. package/dist/lib/yarn/isYarnVersionOrGreater.cjs +0 -52
  321. package/dist/lib/yarn/isYarnVersionOrGreater.cjs.map +0 -1
  322. package/dist/lib/yarn/workspace/Workspace.cjs +0 -19
  323. package/dist/lib/yarn/workspace/Workspace.cjs.map +0 -1
  324. package/dist/lib/yarn/workspace/index.cjs +0 -60
  325. package/dist/lib/yarn/workspace/index.cjs.map +0 -1
  326. package/dist/lib/yarn/workspace/yarnWorkspace.cjs +0 -58
  327. package/dist/lib/yarn/workspace/yarnWorkspace.cjs.map +0 -1
  328. package/dist/lib/yarn/workspace/yarnWorkspaces.cjs +0 -49
  329. package/dist/lib/yarn/workspace/yarnWorkspaces.cjs.map +0 -1
  330. package/dist/lib/yarn/yarnInitCwd.cjs +0 -35
  331. package/dist/lib/yarn/yarnInitCwd.cjs.map +0 -1
  332. package/dist/loadPackageConfig.cjs +0 -39
  333. package/dist/loadPackageConfig.cjs.map +0 -1
  334. package/dist/types.d.cjs +0 -2
  335. package/dist/types.d.cjs.map +0 -1
  336. package/dist/xy/index.cjs +0 -1909
  337. package/dist/xy/index.cjs.map +0 -1
  338. package/dist/xy/param.cjs +0 -36
  339. package/dist/xy/param.cjs.map +0 -1
  340. package/dist/xy/xy.cjs +0 -1895
  341. package/dist/xy/xy.cjs.map +0 -1
  342. package/dist/xy/xyBuildCommands.cjs +0 -595
  343. package/dist/xy/xyBuildCommands.cjs.map +0 -1
  344. package/dist/xy/xyCommonCommands.cjs +0 -723
  345. package/dist/xy/xyCommonCommands.cjs.map +0 -1
  346. package/dist/xy/xyDeployCommands.cjs +0 -263
  347. package/dist/xy/xyDeployCommands.cjs.map +0 -1
  348. package/dist/xy/xyInstallCommands.cjs +0 -508
  349. package/dist/xy/xyInstallCommands.cjs.map +0 -1
  350. package/dist/xy/xyLintCommands.cjs +0 -466
  351. package/dist/xy/xyLintCommands.cjs.map +0 -1
  352. package/dist/xy/xyParseOptions.cjs +0 -84
  353. package/dist/xy/xyParseOptions.cjs.map +0 -1
@@ -1,723 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
9
- var __export = (target, all) => {
10
- for (var name in all)
11
- __defProp(target, name, { get: all[name], enumerable: true });
12
- };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from))
16
- if (!__hasOwnProp.call(to, key) && key !== except)
17
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
- }
19
- return to;
20
- };
21
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
- // If the importer is in node compatibility mode or this is not an ESM
23
- // file that has been converted to a CommonJS file using a Babel-
24
- // compatible transform (i.e. "__esModule" has not been set), then set
25
- // "default" to the CommonJS "module.exports" for node compatibility.
26
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
- mod
28
- ));
29
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
-
31
- // src/xy/xyCommonCommands.ts
32
- var xyCommonCommands_exports = {};
33
- __export(xyCommonCommands_exports, {
34
- xyCommonCommands: () => xyCommonCommands
35
- });
36
- module.exports = __toCommonJS(xyCommonCommands_exports);
37
-
38
- // src/lib/checkResult.ts
39
- var import_chalk = __toESM(require("chalk"), 1);
40
- var checkResult = /* @__PURE__ */ __name((name, result, level = "error", exitOnFail = false) => {
41
- if (result) {
42
- const exiting = exitOnFail ? "[Exiting Process]" : "[Continuing]";
43
- const chalkFunc = level === "error" ? import_chalk.default.red : import_chalk.default.yellow;
44
- console[level](chalkFunc(`${name} had ${result} failures ${exiting}`));
45
- if (exitOnFail) {
46
- process.exit(result);
47
- }
48
- }
49
- }, "checkResult");
50
-
51
- // src/lib/processEx.ts
52
- var import_chalk2 = __toESM(require("chalk"), 1);
53
-
54
- // src/lib/withError.ts
55
- var withError = /* @__PURE__ */ __name((ex, closure, predicate = (ex2) => ex2.name !== void 0 && ex2.message !== void 0) => {
56
- return predicate(ex) ? closure(ex) : void 0;
57
- }, "withError");
58
-
59
- // src/lib/withErrnoException.ts
60
- var withErrnoException = /* @__PURE__ */ __name((ex, closure) => {
61
- return withError(ex, closure, (ex2) => ex2.errno !== void 0);
62
- }, "withErrnoException");
63
-
64
- // src/lib/processEx.ts
65
- var processEx = /* @__PURE__ */ __name((ex) => {
66
- const error = typeof ex === "string" ? new Error(ex) : ex;
67
- const exitCode = withErrnoException(error, (error2) => {
68
- if (error2.code === "ENOENT") {
69
- console.error(import_chalk2.default.red(`'${error2.path}' not found.`));
70
- } else {
71
- console.error(import_chalk2.default.red(`Errno: ${error2.code}`));
72
- }
73
- return error2.errno ?? -1;
74
- }) ?? withError(error, (error2) => {
75
- console.error(import_chalk2.default.red(`${error2.name}: ${error2.message}`));
76
- return -1;
77
- }) ?? (() => {
78
- console.error(import_chalk2.default.red(`Unexpected Error: ${JSON.stringify(ex, null, 2)}`));
79
- return -1;
80
- })();
81
- process.exit(process.exitCode ?? exitCode);
82
- }, "processEx");
83
-
84
- // src/lib/safeExit.ts
85
- var safeExit = /* @__PURE__ */ __name((func, exitOnFail = true) => {
86
- try {
87
- const result = func();
88
- if (result && exitOnFail) {
89
- process.exit(result);
90
- }
91
- return result;
92
- } catch (ex) {
93
- return processEx(ex);
94
- }
95
- }, "safeExit");
96
-
97
- // src/lib/file/constants.ts
98
- var WINDOWS_NEWLINE_REGEX = /\r\n/g;
99
- var CROSS_PLATFORM_NEWLINE = "\n";
100
-
101
- // src/lib/file/fileLines.ts
102
- var import_node_fs = require("fs");
103
-
104
- // src/lib/string/empty.ts
105
- var empty = /* @__PURE__ */ __name((value) => value?.trim().length === 0, "empty");
106
- var notEmpty = /* @__PURE__ */ __name((value) => !empty(value), "notEmpty");
107
-
108
- // src/lib/string/union.ts
109
- var union = /* @__PURE__ */ __name((a, b) => /* @__PURE__ */ new Set([
110
- ...new Set(a),
111
- ...new Set(b)
112
- ]), "union");
113
-
114
- // src/lib/file/ReadFileSyncOptions.ts
115
- var defaultReadFileSyncOptions = {
116
- encoding: "utf8"
117
- };
118
-
119
- // src/lib/file/fileLines.ts
120
- var readLines = /* @__PURE__ */ __name((uri, options = defaultReadFileSyncOptions) => (0, import_node_fs.existsSync)(uri) ? (0, import_node_fs.readFileSync)(uri, options).replace(WINDOWS_NEWLINE_REGEX, CROSS_PLATFORM_NEWLINE).split(CROSS_PLATFORM_NEWLINE) : [], "readLines");
121
- var readNonEmptyLines = /* @__PURE__ */ __name((uri, options = defaultReadFileSyncOptions) => readLines(uri, options).filter(notEmpty), "readNonEmptyLines");
122
- var writeLines = /* @__PURE__ */ __name((uri, lines, options = defaultReadFileSyncOptions) => {
123
- const existing = (0, import_node_fs.existsSync)(uri) ? (0, import_node_fs.readFileSync)(uri, options) : void 0;
124
- const desired = lines.join(CROSS_PLATFORM_NEWLINE);
125
- if (existing !== desired) (0, import_node_fs.writeFileSync)(uri, desired, options);
126
- }, "writeLines");
127
-
128
- // src/lib/generateIgnoreFiles.ts
129
- var import_chalk3 = __toESM(require("chalk"), 1);
130
-
131
- // src/lib/yarn/isYarnVersionOrGreater.ts
132
- var import_node_child_process = require("child_process");
133
- var isYarnVersionOrGreater = /* @__PURE__ */ __name((major, minor, patch) => {
134
- const result = (0, import_node_child_process.spawnSync)("yarn", [
135
- "-v"
136
- ], {
137
- encoding: "utf8",
138
- shell: true
139
- });
140
- const version = result.stdout.toString().replaceAll("\n", "");
141
- const versionNumbers = version.split(".").map((ver) => Number.parseInt(ver));
142
- const majorDelta = versionNumbers[0] - major;
143
- const minorDelta = versionNumbers[1] - (minor ?? versionNumbers[1]);
144
- const patchDelta = versionNumbers[2] - (patch ?? versionNumbers[2]);
145
- const majorOk = majorDelta >= 0;
146
- const minorOk = majorDelta > 0 || minorDelta >= 0;
147
- const patchOk = majorDelta > 0 || minorDelta > 0 || patchDelta >= 0;
148
- return [
149
- majorOk && minorOk && patchOk,
150
- version
151
- ];
152
- }, "isYarnVersionOrGreater");
153
-
154
- // src/lib/yarn/workspace/yarnWorkspaces.ts
155
- var import_node_child_process2 = require("child_process");
156
- var yarnWorkspaces = /* @__PURE__ */ __name(() => {
157
- const result = (0, import_node_child_process2.spawnSync)("yarn", [
158
- "workspaces",
159
- "list",
160
- "--json",
161
- "--recursive"
162
- ], {
163
- encoding: "utf8",
164
- shell: true
165
- });
166
- if (result.error) {
167
- throw result.error;
168
- }
169
- return result.stdout.toString().split("\n").slice(0, -1).map((item) => {
170
- return JSON.parse(item);
171
- });
172
- }, "yarnWorkspaces");
173
-
174
- // src/lib/yarn/workspace/yarnWorkspace.ts
175
- var yarnWorkspace = /* @__PURE__ */ __name((pkg) => {
176
- const workspace = yarnWorkspaces().find(({ name }) => name === pkg);
177
- if (!workspace) throw new Error(`Workspace ${pkg} not found`);
178
- return workspace;
179
- }, "yarnWorkspace");
180
-
181
- // src/lib/yarn/yarnInitCwd.ts
182
- var INIT_CWD = /* @__PURE__ */ __name(() => {
183
- if (!process.env.INIT_CWD) console.error("Missing INIT_CWD");
184
- return process.env.INIT_CWD;
185
- }, "INIT_CWD");
186
-
187
- // src/lib/generateIgnoreFiles.ts
188
- var mergeEntries = /* @__PURE__ */ __name((a, b) => [
189
- ...union(a, b)
190
- ].sort(), "mergeEntries");
191
- var generateIgnoreFiles = /* @__PURE__ */ __name((filename3, pkg) => {
192
- console.log(import_chalk3.default.green(`Generate ${filename3} Files`));
193
- const cwd = INIT_CWD() ?? ".";
194
- const workspaces = pkg ? [
195
- yarnWorkspace(pkg)
196
- ] : yarnWorkspaces();
197
- const readEntries = /* @__PURE__ */ __name((location) => readNonEmptyLines(`${location}/${filename3}`), "readEntries");
198
- const writeEntries = /* @__PURE__ */ __name((location, entries) => writeLines(`${location}/${filename3}`, entries), "writeEntries");
199
- const results = workspaces.map(({ location, name }) => {
200
- try {
201
- writeEntries(location, mergeEntries(readEntries(cwd), readEntries(location)));
202
- return 0;
203
- } catch (ex) {
204
- const error = ex;
205
- console.error(`Generate ${filename3} Files [${name}] [${error.message}]`);
206
- return 1;
207
- }
208
- });
209
- const succeeded = results.every((result) => result === 0);
210
- return succeeded ? 0 : 1;
211
- }, "generateIgnoreFiles");
212
-
213
- // src/lib/runSteps.ts
214
- var import_node_child_process3 = require("child_process");
215
- var import_node_fs2 = require("fs");
216
- var import_chalk4 = __toESM(require("chalk"), 1);
217
- var runSteps = /* @__PURE__ */ __name((name, steps, exitOnFail = true, messages) => {
218
- return safeExit(() => {
219
- const pkgName = process.env.npm_package_name;
220
- console.log(import_chalk4.default.green(`${name} [${pkgName}]`));
221
- let totalStatus = 0;
222
- for (const [i, [command, args, config]] of steps.entries()) {
223
- if (messages?.[i]) {
224
- console.log(import_chalk4.default.gray(messages?.[i]));
225
- }
226
- const argList = Array.isArray(args) ? args : args.split(" ");
227
- if (command === "node" && !(0, import_node_fs2.existsSync)(argList[0])) {
228
- throw new Error(`File not found [${argList[0]}]`);
229
- }
230
- const status = (0, import_node_child_process3.spawnSync)(command, Array.isArray(args) ? args : args.split(" "), {
231
- ...config,
232
- encoding: "utf8",
233
- env: {
234
- FORCE_COLOR: "3",
235
- ...process.env
236
- },
237
- shell: true,
238
- stdio: "inherit"
239
- }).status ?? 0;
240
- checkResult(name, status, "error", exitOnFail);
241
- totalStatus += status ?? 0;
242
- }
243
- return totalStatus;
244
- }, !!exitOnFail);
245
- }, "runSteps");
246
-
247
- // src/actions/clean-docs.ts
248
- var import_node_path = __toESM(require("path"), 1);
249
- var import_chalk5 = __toESM(require("chalk"), 1);
250
- var import_rimraf = require("rimraf");
251
- var cleanDocs = /* @__PURE__ */ __name(() => {
252
- const pkgName = process.env.npm_package_name;
253
- console.log(import_chalk5.default.green(`Cleaning Docs [${pkgName}]`));
254
- for (const { location } of yarnWorkspaces()) (0, import_rimraf.rimrafSync)(import_node_path.default.join(location, "docs"), {
255
- glob: true
256
- });
257
- return 0;
258
- }, "cleanDocs");
259
-
260
- // src/actions/dead.ts
261
- var dead = /* @__PURE__ */ __name(() => {
262
- return runSteps("Dead", [
263
- [
264
- "yarn",
265
- [
266
- "ts-prune",
267
- "-p",
268
- "tsconfig.json"
269
- ]
270
- ]
271
- ]);
272
- }, "dead");
273
-
274
- // src/actions/deps.ts
275
- var import_chalk6 = __toESM(require("chalk"), 1);
276
- var deps = /* @__PURE__ */ __name(({ pkg, incremental }) => {
277
- pkg ? depsPackage({
278
- pkg
279
- }) : depsAll({
280
- incremental
281
- });
282
- return 0;
283
- }, "deps");
284
- var depsPackage = /* @__PURE__ */ __name(({ pkg }) => {
285
- const steps = [
286
- [
287
- "yarn",
288
- [
289
- "workspace",
290
- pkg,
291
- "run",
292
- "package-deps"
293
- ]
294
- ]
295
- ];
296
- return runSteps(`Deps [${pkg}]`, [
297
- ...steps
298
- ]);
299
- }, "depsPackage");
300
- var depsAll = /* @__PURE__ */ __name(({ incremental, jobs, verbose }) => {
301
- const start = Date.now();
302
- const jobsOptions = jobs ? [
303
- "-j",
304
- `${jobs}`
305
- ] : [];
306
- const verboseOptions = verbose ? [
307
- "--verbose"
308
- ] : [
309
- "--no-verbose"
310
- ];
311
- if (jobs) {
312
- console.log(import_chalk6.default.blue(`Jobs set to [${jobs}]`));
313
- }
314
- const incrementalOptions = incremental ? [
315
- "--since",
316
- "-pA"
317
- ] : [
318
- "-pA"
319
- ];
320
- const steps = [
321
- [
322
- "yarn",
323
- [
324
- "workspaces",
325
- "foreach",
326
- ...jobsOptions,
327
- ...incrementalOptions,
328
- ...verboseOptions,
329
- "run",
330
- "package-deps"
331
- ]
332
- ]
333
- ];
334
- const result = runSteps(`Deps${incremental ? "-Incremental" : ""} [All]`, [
335
- ...steps
336
- ]);
337
- console.log(`${import_chalk6.default.gray("Dep checked in")} [${import_chalk6.default.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${import_chalk6.default.gray("seconds")}`);
338
- return result;
339
- }, "depsAll");
340
-
341
- // src/actions/gen-docs.ts
342
- var genDocs = /* @__PURE__ */ __name(({ pkg, incremental }) => {
343
- return pkg ? genDocsPackage({
344
- pkg
345
- }) : genDocsAll({
346
- incremental
347
- });
348
- }, "genDocs");
349
- var genDocsPackage = /* @__PURE__ */ __name(({ pkg }) => {
350
- const steps = [
351
- [
352
- "yarn",
353
- [
354
- "workspace",
355
- pkg,
356
- "run",
357
- "package-gen-docs"
358
- ]
359
- ]
360
- ];
361
- return runSteps(`GenDocs [${pkg}]`, [
362
- ...steps
363
- ]);
364
- }, "genDocsPackage");
365
- var genDocsAll = /* @__PURE__ */ __name(({ incremental }) => {
366
- const incrementalOptions = incremental ? [
367
- "--since",
368
- "-pA"
369
- ] : [
370
- "-pA"
371
- ];
372
- const steps = [
373
- [
374
- "yarn",
375
- [
376
- "workspaces",
377
- "foreach",
378
- ...incrementalOptions,
379
- "run",
380
- "package-gen-docs"
381
- ]
382
- ]
383
- ];
384
- return runSteps(`GenDocs [All${incremental ? "-Incremental" : ""}]`, [
385
- ...steps
386
- ]);
387
- }, "genDocsAll");
388
-
389
- // src/actions/gitignore-gen.ts
390
- var filename = ".gitignore";
391
- var gitignoreGen = /* @__PURE__ */ __name((pkg) => generateIgnoreFiles(filename, pkg), "gitignoreGen");
392
-
393
- // src/actions/gitlint.ts
394
- var import_chalk7 = __toESM(require("chalk"), 1);
395
- var import_parse_git_config = __toESM(require("parse-git-config"), 1);
396
- var gitlint = /* @__PURE__ */ __name(() => {
397
- console.log(`
398
- Gitlint Start [${process.cwd()}]
399
- `);
400
- let valid = 0;
401
- let warnings = 0;
402
- const errors = 0;
403
- const gitConfig = import_parse_git_config.default.sync();
404
- const warn = /* @__PURE__ */ __name((message) => {
405
- console.warn(import_chalk7.default.yellow(`Warning: ${message}`));
406
- warnings++;
407
- }, "warn");
408
- if (gitConfig.core.ignorecase) {
409
- warn("Please set core.ignorecase to FALSE in .git/config file [run yarn gitlint-fix]");
410
- } else {
411
- valid++;
412
- }
413
- if (gitConfig.core.autocrlf === false) {
414
- valid++;
415
- } else {
416
- warn("Please set core.autocrlf to FALSE in .git/config file [run yarn gitlint-fix]");
417
- }
418
- if (gitConfig.core.eol === "lf") {
419
- valid++;
420
- } else {
421
- warn('Please set core.eol to "lf" in .git/config file [run yarn gitlint-fix]');
422
- }
423
- const resultMessages = [];
424
- if (valid > 0) {
425
- resultMessages.push(import_chalk7.default.green(`Passed: ${valid}`));
426
- }
427
- if (warnings > 0) {
428
- resultMessages.push(import_chalk7.default.yellow(`Warnings: ${warnings}`));
429
- }
430
- if (errors > 0) {
431
- resultMessages.push(import_chalk7.default.red(` Errors: ${errors}`));
432
- }
433
- console.warn(`Gitlint Finish [ ${resultMessages.join(" | ")} ]
434
- `);
435
- return warnings + errors === 0 ? 1 : 0;
436
- }, "gitlint");
437
-
438
- // src/actions/gitlint-fix.ts
439
- var import_node_child_process4 = require("child_process");
440
- var import_chalk8 = __toESM(require("chalk"), 1);
441
- var import_parse_git_config2 = __toESM(require("parse-git-config"), 1);
442
- var gitlintFix = /* @__PURE__ */ __name(() => {
443
- console.log(`
444
- Gitlint Fix Start [${process.cwd()}]
445
- `);
446
- const gitConfig = import_parse_git_config2.default.sync();
447
- if (gitConfig.core.ignorecase) {
448
- (0, import_node_child_process4.execSync)("git config core.ignorecase false", {
449
- stdio: "inherit"
450
- });
451
- console.warn(import_chalk8.default.yellow("\nGitlint Fix: Updated core.ignorecase to be false\n"));
452
- }
453
- if (gitConfig.core.autocrlf !== false) {
454
- (0, import_node_child_process4.execSync)("git config core.autocrlf false", {
455
- stdio: "inherit"
456
- });
457
- console.warn(import_chalk8.default.yellow("\nGitlint Fix: Updated core.autocrlf to be false\n"));
458
- }
459
- if (gitConfig.core.eol !== "lf") {
460
- (0, import_node_child_process4.execSync)("git config core.eol lf", {
461
- stdio: "inherit"
462
- });
463
- console.warn(import_chalk8.default.yellow('\nGitlint Fix: Updated core.eol to be "lf"\n'));
464
- }
465
- return 1;
466
- }, "gitlintFix");
467
-
468
- // src/actions/license.ts
469
- var import_chalk9 = __toESM(require("chalk"), 1);
470
- var import_license_checker = require("license-checker");
471
- var license = /* @__PURE__ */ __name(async (pkg) => {
472
- const workspaces = yarnWorkspaces();
473
- const workspaceList = workspaces.filter(({ name }) => {
474
- return pkg === void 0 || name === pkg;
475
- });
476
- const exclude = /* @__PURE__ */ new Set([
477
- "MIT",
478
- "MIT*",
479
- "ISC",
480
- "Apache-2.0",
481
- "BSD",
482
- "BSD*",
483
- "BSD-2-Clause",
484
- "BSD-3-Clause",
485
- "CC-BY-4.0",
486
- "Unlicense",
487
- "CC-BY-3.0",
488
- "CC0-1.0",
489
- "LGPL-3.0-only",
490
- "LGPL-3.0",
491
- "LGPL-3.0-or-later",
492
- "Python-2.0"
493
- ]);
494
- console.log(import_chalk9.default.green("License Checker"));
495
- return (await Promise.all(workspaceList.map(({ location, name }) => {
496
- return new Promise((resolve) => {
497
- (0, import_license_checker.init)({
498
- production: true,
499
- start: location
500
- }, (error, packages) => {
501
- if (error) {
502
- console.error(import_chalk9.default.red(`License Checker [${name}] Error`));
503
- console.error(import_chalk9.default.gray(error));
504
- console.log("\n");
505
- resolve(1);
506
- } else {
507
- console.log(import_chalk9.default.green(`License Checker [${name}]`));
508
- let count = 0;
509
- for (const [name2, info] of Object.entries(packages)) {
510
- const licenses = Array.isArray(info.licenses) ? info.licenses : [
511
- info.licenses
512
- ];
513
- for (let license2 of licenses) {
514
- if (license2) {
515
- if (license2[0] === "(" && license2.at(-1) === ")") {
516
- license2 = license2.slice(1, -2);
517
- }
518
- const orLicenses = license2.split(" OR ");
519
- let orLicenseFound = false;
520
- for (const orLicense of orLicenses) {
521
- if (exclude.has(orLicense)) {
522
- orLicenseFound = true;
523
- }
524
- }
525
- if (!orLicenseFound) {
526
- count++;
527
- console.warn(import_chalk9.default.yellow(`${name2}: Package License not allowed [${license2}]`));
528
- }
529
- }
530
- }
531
- }
532
- console.log("\n");
533
- resolve(count);
534
- }
535
- });
536
- });
537
- }))).reduce((prev, value) => prev || value, 0);
538
- }, "license");
539
-
540
- // src/actions/npmignore-gen.ts
541
- var filename2 = ".npmignore";
542
- var npmignoreGen = /* @__PURE__ */ __name((pkg) => generateIgnoreFiles(filename2, pkg), "npmignoreGen");
543
-
544
- // src/actions/retest.ts
545
- var retest = /* @__PURE__ */ __name(() => {
546
- return runSteps("Test", [
547
- [
548
- "yarn",
549
- [
550
- "jest",
551
- "--clearCache"
552
- ]
553
- ],
554
- [
555
- "yarn",
556
- [
557
- "jest",
558
- "."
559
- ]
560
- ]
561
- ]);
562
- }, "retest");
563
-
564
- // src/actions/test.ts
565
- var test = /* @__PURE__ */ __name(() => {
566
- return runSteps("Test", [
567
- [
568
- "yarn",
569
- [
570
- "jest",
571
- "."
572
- ]
573
- ]
574
- ]);
575
- }, "test");
576
-
577
- // src/actions/upplug.ts
578
- var updateYarnPlugins = /* @__PURE__ */ __name(() => {
579
- return runSteps("Update Yarn Plugins", [
580
- [
581
- "yarn",
582
- [
583
- "plugin",
584
- "import",
585
- "https://mskelton.dev/yarn-outdated/v3"
586
- ]
587
- ],
588
- [
589
- "yarn",
590
- [
591
- "plugin",
592
- "import",
593
- "version"
594
- ]
595
- ],
596
- [
597
- "yarn",
598
- [
599
- "plugin",
600
- "import",
601
- "interactive-tools"
602
- ]
603
- ],
604
- [
605
- "yarn",
606
- [
607
- "plugin",
608
- "import",
609
- "workspace-tools"
610
- ]
611
- ]
612
- ]);
613
- }, "updateYarnPlugins");
614
-
615
- // src/actions/upyarn.ts
616
- var updateYarnVersion = /* @__PURE__ */ __name(() => {
617
- return runSteps("Update Yarn Version", [
618
- [
619
- "yarn",
620
- [
621
- "set",
622
- "version",
623
- "latest"
624
- ]
625
- ]
626
- ]);
627
- }, "updateYarnVersion");
628
-
629
- // src/actions/yarn3only.ts
630
- var yarn3Only = /* @__PURE__ */ __name(() => {
631
- const [valid, version] = isYarnVersionOrGreater(3);
632
- if (!valid) {
633
- processEx(`Invalid Yarn version [${version}]`);
634
- }
635
- return 0;
636
- }, "yarn3Only");
637
-
638
- // src/xy/param.ts
639
- var packagePositionalParam = /* @__PURE__ */ __name((yargs) => {
640
- return yargs.positional("package", {
641
- describe: "Specific package to target"
642
- });
643
- }, "packagePositionalParam");
644
-
645
- // src/xy/xyCommonCommands.ts
646
- var xyCommonCommands = /* @__PURE__ */ __name((args) => {
647
- return args.command("license [package]", "License - Check licenses of dependencies", (yargs) => {
648
- return packagePositionalParam(yargs);
649
- }, async (argv) => {
650
- if (argv.verbose) console.log(`License: ${argv.package ?? "all"}`);
651
- process.exitCode = await license();
652
- }).command("dead [package]", "Dead - Check for dead code", (yargs) => {
653
- return packagePositionalParam(yargs);
654
- }, (argv) => {
655
- if (argv.verbose) console.log("Dead");
656
- process.exitCode = dead();
657
- }).command("deps [package]", "Deps - Check for unused or missing dependencies", (yargs) => {
658
- return packagePositionalParam(yargs);
659
- }, (argv) => {
660
- if (argv.verbose) console.log(`Checking Dependencies: ${argv.package ?? "all"}`);
661
- process.exitCode = deps({
662
- incremental: !!argv.incremental,
663
- jobs: argv.jobs,
664
- pkg: argv.package
665
- });
666
- }).command("gen-docs [package]", "GenDocs - Generate TypeDocs", (yargs) => {
667
- return packagePositionalParam(yargs);
668
- }, (argv) => {
669
- if (argv.verbose) console.log(`Generating TypeDocs: ${argv.package ?? "all"}`);
670
- process.exitCode = genDocs({
671
- incremental: !!argv.incremental,
672
- pkg: argv.package
673
- });
674
- }).command("clean-docs", "CleanDocs - Clean TypeDocs", (yargs) => yargs, (argv) => {
675
- if (argv.verbose) console.log("Cleaning TypeDocs: all");
676
- process.exitCode = cleanDocs();
677
- }).command("gitlint [package]", "Gitlint - Lint your git config", (yargs) => {
678
- return yargs;
679
- }, (argv) => {
680
- if (argv.verbose) console.log("Gitlint");
681
- process.exitCode = argv.fix ? gitlintFix() : gitlint();
682
- }).command("gitignore-gen", "GitIgnore Gen - Generate .gitignore files", (yargs) => {
683
- return yargs;
684
- }, (argv) => {
685
- if (argv.verbose) console.log("GitIgnore Gen");
686
- process.exitCode = gitignoreGen();
687
- }).command("npmignore-gen", "NpmIgnore Gen - Generate .npmignore files", (yargs) => {
688
- return yargs;
689
- }, (argv) => {
690
- if (argv.verbose) console.log("NpmIgnore Gen");
691
- process.exitCode = npmignoreGen();
692
- }).command("retest", "Re-Test - Run Jest Tests with cleaned cache", (yargs) => {
693
- return yargs;
694
- }, (argv) => {
695
- if (argv.verbose) console.log("Re-Testing");
696
- process.exitCode = retest();
697
- }).command("test", "Test - Run Jest Tests", (yargs) => {
698
- return yargs;
699
- }, (argv) => {
700
- if (argv.verbose) console.log("Testing");
701
- process.exitCode = test();
702
- }).command("upplug", "UpPlug - Update Yarn Plugins", (yargs) => {
703
- return yargs;
704
- }, (argv) => {
705
- if (argv.verbose) console.log("UpPlug");
706
- process.exitCode = updateYarnPlugins();
707
- }).command("upyarn", "UpYarn - Update Yarn Version", (yargs) => {
708
- return yargs;
709
- }, (argv) => {
710
- if (argv.verbose) console.log("UpYarn");
711
- process.exitCode = updateYarnVersion();
712
- }).command("yarn3only", "Yarn3Only - Check if using Yarn v3", (yargs) => {
713
- return yargs;
714
- }, (argv) => {
715
- if (argv.verbose) console.log("Yarn 3 Check");
716
- process.exitCode = yarn3Only();
717
- });
718
- }, "xyCommonCommands");
719
- // Annotate the CommonJS export names for ESM import in node:
720
- 0 && (module.exports = {
721
- xyCommonCommands
722
- });
723
- //# sourceMappingURL=xyCommonCommands.cjs.map