@xylabs/ts-scripts-yarn3 4.0.0-rc.9 → 4.0.1

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 (198) hide show
  1. package/dist/actions/build.mjs.map +1 -1
  2. package/dist/actions/clean-docs.mjs +14 -4
  3. package/dist/actions/clean-docs.mjs.map +1 -1
  4. package/dist/actions/clean-eslint.mjs +16 -4
  5. package/dist/actions/clean-eslint.mjs.map +1 -1
  6. package/dist/actions/clean-jest.mjs.map +1 -1
  7. package/dist/actions/clean.mjs.map +1 -1
  8. package/dist/actions/compile.mjs +3 -2
  9. package/dist/actions/compile.mjs.map +1 -1
  10. package/dist/actions/copy-assets.mjs.map +1 -1
  11. package/dist/actions/cycle.mjs +25 -110
  12. package/dist/actions/cycle.mjs.map +1 -1
  13. package/dist/actions/dead.mjs.map +1 -1
  14. package/dist/actions/deploy-major.mjs.map +1 -1
  15. package/dist/actions/deploy-minor.mjs.map +1 -1
  16. package/dist/actions/deploy-next.mjs.map +1 -1
  17. package/dist/actions/deploy.mjs.map +1 -1
  18. package/dist/actions/deps.mjs.map +1 -1
  19. package/dist/actions/dupdeps.mjs +3 -2
  20. package/dist/actions/dupdeps.mjs.map +1 -1
  21. package/dist/actions/fix.mjs.map +1 -1
  22. package/dist/actions/gen-docs.mjs.map +1 -1
  23. package/dist/actions/gitignore-gen.mjs.map +1 -1
  24. package/dist/actions/index.mjs +300 -77
  25. package/dist/actions/index.mjs.map +1 -1
  26. package/dist/actions/license.mjs.map +1 -1
  27. package/dist/actions/lint-clean.mjs.map +1 -1
  28. package/dist/actions/lint-profile.mjs.map +1 -1
  29. package/dist/actions/lint.mjs.map +1 -1
  30. package/dist/actions/npmignore-gen.mjs.map +1 -1
  31. package/dist/actions/package/clean-outputs.mjs +16 -2
  32. package/dist/actions/package/clean-outputs.mjs.map +1 -1
  33. package/dist/actions/package/clean-typescript.mjs +16 -2
  34. package/dist/actions/package/clean-typescript.mjs.map +1 -1
  35. package/dist/actions/package/clean.mjs +17 -4
  36. package/dist/actions/package/clean.mjs.map +1 -1
  37. package/dist/actions/package/compile/buildEntries.mjs.map +1 -1
  38. package/dist/actions/package/compile/compile.mjs +221 -16
  39. package/dist/actions/package/compile/compile.mjs.map +1 -1
  40. package/dist/actions/package/compile/copyTypeFiles.mjs.map +1 -1
  41. package/dist/actions/package/compile/getCompilerOptions.mjs +145 -8
  42. package/dist/actions/package/compile/getCompilerOptions.mjs.map +1 -1
  43. package/dist/actions/package/compile/index.mjs +221 -16
  44. package/dist/actions/package/compile/index.mjs.map +1 -1
  45. package/dist/actions/package/compile/packageCompileTsc.mjs +148 -8
  46. package/dist/actions/package/compile/packageCompileTsc.mjs.map +1 -1
  47. package/dist/actions/package/compile/packageCompileTscTypes.mjs +145 -8
  48. package/dist/actions/package/compile/packageCompileTscTypes.mjs.map +1 -1
  49. package/dist/actions/package/compile/packageCompileTsup.mjs +235 -3
  50. package/dist/actions/package/compile/packageCompileTsup.mjs.map +1 -1
  51. package/dist/actions/package/copy-assets.mjs.map +1 -1
  52. package/dist/actions/package/deps.mjs.map +1 -1
  53. package/dist/actions/package/gen-docs.mjs.map +1 -1
  54. package/dist/actions/package/index.mjs +289 -71
  55. package/dist/actions/package/index.mjs.map +1 -1
  56. package/dist/actions/package/publint.mjs +3 -0
  57. package/dist/actions/package/publint.mjs.map +1 -1
  58. package/dist/actions/package/recompile.mjs +262 -44
  59. package/dist/actions/package/recompile.mjs.map +1 -1
  60. package/dist/actions/publint.mjs.map +1 -1
  61. package/dist/actions/rebuild.mjs.map +1 -1
  62. package/dist/actions/recompile.mjs.map +1 -1
  63. package/dist/actions/reinstall.mjs.map +1 -1
  64. package/dist/actions/relint.mjs.map +1 -1
  65. package/dist/actions/retest.mjs.map +1 -1
  66. package/dist/actions/sonar.mjs.map +1 -1
  67. package/dist/actions/statics.mjs +3 -2
  68. package/dist/actions/statics.mjs.map +1 -1
  69. package/dist/actions/test.mjs.map +1 -1
  70. package/dist/actions/up.mjs.map +1 -1
  71. package/dist/actions/updo.mjs.map +1 -1
  72. package/dist/actions/upplug.mjs.map +1 -1
  73. package/dist/actions/upyarn.mjs.map +1 -1
  74. package/dist/actions/yarn3only.mjs.map +1 -1
  75. package/dist/bin/package/clean-outputs.mjs +14 -2
  76. package/dist/bin/package/clean-outputs.mjs.map +1 -1
  77. package/dist/bin/package/clean-typescript.mjs +14 -2
  78. package/dist/bin/package/clean-typescript.mjs.map +1 -1
  79. package/dist/bin/package/clean.mjs +15 -4
  80. package/dist/bin/package/clean.mjs.map +1 -1
  81. package/dist/bin/package/compile-only.mjs +223 -18
  82. package/dist/bin/package/compile-only.mjs.map +1 -1
  83. package/dist/bin/package/compile-tsup.mjs +235 -5
  84. package/dist/bin/package/compile-tsup.mjs.map +1 -1
  85. package/dist/bin/package/compile.mjs +223 -18
  86. package/dist/bin/package/compile.mjs.map +1 -1
  87. package/dist/bin/package/copy-assets-cjs.mjs.map +1 -1
  88. package/dist/bin/package/copy-assets-esm.mjs.map +1 -1
  89. package/dist/bin/package/deps.mjs.map +1 -1
  90. package/dist/bin/package/gen-docs.mjs.map +1 -1
  91. package/dist/bin/package/publint.mjs +3 -0
  92. package/dist/bin/package/publint.mjs.map +1 -1
  93. package/dist/bin/package/recompile.mjs +242 -26
  94. package/dist/bin/package/recompile.mjs.map +1 -1
  95. package/dist/bin/xy-ts.mjs +52 -32
  96. package/dist/bin/xy-ts.mjs.map +1 -1
  97. package/dist/bin/xy.mjs +52 -32
  98. package/dist/bin/xy.mjs.map +1 -1
  99. package/dist/index.d.ts +11 -9
  100. package/dist/index.mjs +313 -89
  101. package/dist/index.mjs.map +1 -1
  102. package/dist/lib/createBuildConfig.mjs.map +1 -1
  103. package/dist/lib/defaultBuildConfig.mjs.map +1 -1
  104. package/dist/lib/deleteGlob.mjs +19 -0
  105. package/dist/lib/deleteGlob.mjs.map +1 -0
  106. package/dist/lib/dependencies/DuplicateDetector.mjs +3 -2
  107. package/dist/lib/dependencies/DuplicateDetector.mjs.map +1 -1
  108. package/dist/lib/dependencies/detectDuplicateDependencies.mjs +3 -2
  109. package/dist/lib/dependencies/detectDuplicateDependencies.mjs.map +1 -1
  110. package/dist/lib/dependencies/index.mjs +3 -2
  111. package/dist/lib/dependencies/index.mjs.map +1 -1
  112. package/dist/lib/file/ReadFileSyncOptions.mjs.map +1 -1
  113. package/dist/lib/file/fileLines.mjs.map +1 -1
  114. package/dist/lib/file/index.mjs.map +1 -1
  115. package/dist/lib/file/tryReadFileSync.mjs.map +1 -1
  116. package/dist/lib/generateIgnoreFiles.mjs.map +1 -1
  117. package/dist/lib/index.mjs +160 -5
  118. package/dist/lib/index.mjs.map +1 -1
  119. package/dist/lib/loadConfig.mjs +143 -3
  120. package/dist/lib/loadConfig.mjs.map +1 -1
  121. package/dist/lib/processEx.mjs.map +1 -1
  122. package/dist/lib/runSteps.mjs.map +1 -1
  123. package/dist/lib/runStepsAsync.mjs.map +1 -1
  124. package/dist/lib/runXy.mjs.map +1 -1
  125. package/dist/lib/safeExit.mjs.map +1 -1
  126. package/dist/lib/withErrnoException.mjs.map +1 -1
  127. package/dist/lib/yarn/index.mjs.map +1 -1
  128. package/dist/lib/yarn/workspace/index.mjs.map +1 -1
  129. package/dist/lib/yarn/workspace/yarnWorkspace.mjs.map +1 -1
  130. package/dist/lib/yarn/workspace/yarnWorkspaces.mjs.map +1 -1
  131. package/dist/loadPackageConfig.mjs.map +1 -1
  132. package/dist/xy/index.mjs +52 -32
  133. package/dist/xy/index.mjs.map +1 -1
  134. package/dist/xy/param.mjs.map +1 -1
  135. package/dist/xy/xy.mjs +52 -32
  136. package/dist/xy/xy.mjs.map +1 -1
  137. package/dist/xy/xyBuildCommands.mjs +3 -2
  138. package/dist/xy/xyBuildCommands.mjs.map +1 -1
  139. package/dist/xy/xyCommonCommands.mjs +14 -4
  140. package/dist/xy/xyCommonCommands.mjs.map +1 -1
  141. package/dist/xy/xyDeployCommands.mjs.map +1 -1
  142. package/dist/xy/xyInstallCommands.mjs +3 -2
  143. package/dist/xy/xyInstallCommands.mjs.map +1 -1
  144. package/dist/xy/xyLintCommands.mjs +30 -22
  145. package/dist/xy/xyLintCommands.mjs.map +1 -1
  146. package/dist/xy/xyParseOptions.mjs.map +1 -1
  147. package/package.json +53 -55
  148. package/src/actions/build.ts +3 -1
  149. package/src/actions/clean-docs.ts +2 -3
  150. package/src/actions/clean-eslint.ts +3 -2
  151. package/src/actions/clean.ts +3 -1
  152. package/src/actions/compile.ts +13 -3
  153. package/src/actions/cycle.ts +15 -4
  154. package/src/actions/deps.ts +6 -5
  155. package/src/actions/gen-docs.ts +3 -4
  156. package/src/actions/package/clean-outputs.ts +3 -2
  157. package/src/actions/package/clean-typescript.ts +3 -2
  158. package/src/actions/package/compile/XyConfig.ts +5 -13
  159. package/src/actions/package/compile/buildEntries.ts +1 -1
  160. package/src/actions/package/compile/compile.ts +3 -1
  161. package/src/actions/package/compile/copyTypeFiles.ts +1 -1
  162. package/src/actions/package/compile/getCompilerOptions.ts +10 -8
  163. package/src/actions/package/compile/packageCompileTsc.ts +11 -6
  164. package/src/actions/package/compile/packageCompileTscTypes.ts +5 -3
  165. package/src/actions/package/compile/packageCompileTsup.ts +10 -8
  166. package/src/actions/package/copy-assets.ts +1 -3
  167. package/src/actions/package/deps.ts +6 -2
  168. package/src/actions/package/gen-docs.ts +3 -1
  169. package/src/actions/package/publint.ts +8 -5
  170. package/src/actions/publint.ts +3 -1
  171. package/src/actions/recompile.ts +47 -9
  172. package/src/actions/reinstall.ts +3 -1
  173. package/src/lib/defaultBuildConfig.ts +11 -1
  174. package/src/lib/deleteGlob.ts +13 -0
  175. package/src/lib/dependencies/DuplicateDetector.ts +4 -4
  176. package/src/lib/file/ReadFileSyncOptions.ts +4 -1
  177. package/src/lib/file/fileLines.ts +9 -3
  178. package/src/lib/file/tryReadFileSync.ts +4 -2
  179. package/src/lib/generateIgnoreFiles.ts +3 -1
  180. package/src/lib/index.ts +1 -0
  181. package/src/lib/loadConfig.ts +3 -4
  182. package/src/lib/runSteps.ts +2 -1
  183. package/src/lib/runStepsAsync.ts +1 -1
  184. package/src/lib/runXy.ts +4 -1
  185. package/src/lib/withErrnoException.ts +3 -1
  186. package/src/lib/yarn/workspace/yarnWorkspace.ts +1 -1
  187. package/src/lib/yarn/workspace/yarnWorkspaces.ts +1 -1
  188. package/src/loadPackageConfig.ts +1 -1
  189. package/src/types.d.ts +23 -0
  190. package/src/xy/param.ts +2 -4
  191. package/src/xy/xyBuildCommands.ts +10 -20
  192. package/src/xy/xyCommonCommands.ts +4 -2
  193. package/src/xy/xyDeployCommands.ts +4 -2
  194. package/src/xy/xyInstallCommands.ts +5 -5
  195. package/src/xy/xyLintCommands.ts +6 -4
  196. package/src/xy/xyParseOptions.ts +3 -2
  197. package/tsup.config.ts +2 -6
  198. package/xy.config.ts +1 -5
package/dist/index.mjs CHANGED
@@ -1,5 +1,145 @@
1
+ var __create = Object.create;
1
2
  var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
2
7
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
8
+ var __commonJS = (cb, mod) => function __require() {
9
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+
28
+ // ../../node_modules/deepmerge/dist/cjs.js
29
+ var require_cjs = __commonJS({
30
+ "../../node_modules/deepmerge/dist/cjs.js"(exports, module) {
31
+ "use strict";
32
+ var isMergeableObject = /* @__PURE__ */ __name(function isMergeableObject2(value) {
33
+ return isNonNullObject(value) && !isSpecial(value);
34
+ }, "isMergeableObject");
35
+ function isNonNullObject(value) {
36
+ return !!value && typeof value === "object";
37
+ }
38
+ __name(isNonNullObject, "isNonNullObject");
39
+ function isSpecial(value) {
40
+ var stringValue = Object.prototype.toString.call(value);
41
+ return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value);
42
+ }
43
+ __name(isSpecial, "isSpecial");
44
+ var canUseSymbol = typeof Symbol === "function" && Symbol.for;
45
+ var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for("react.element") : 60103;
46
+ function isReactElement(value) {
47
+ return value.$$typeof === REACT_ELEMENT_TYPE;
48
+ }
49
+ __name(isReactElement, "isReactElement");
50
+ function emptyTarget(val) {
51
+ return Array.isArray(val) ? [] : {};
52
+ }
53
+ __name(emptyTarget, "emptyTarget");
54
+ function cloneUnlessOtherwiseSpecified(value, options) {
55
+ return options.clone !== false && options.isMergeableObject(value) ? deepmerge3(emptyTarget(value), value, options) : value;
56
+ }
57
+ __name(cloneUnlessOtherwiseSpecified, "cloneUnlessOtherwiseSpecified");
58
+ function defaultArrayMerge(target, source, options) {
59
+ return target.concat(source).map(function(element) {
60
+ return cloneUnlessOtherwiseSpecified(element, options);
61
+ });
62
+ }
63
+ __name(defaultArrayMerge, "defaultArrayMerge");
64
+ function getMergeFunction(key, options) {
65
+ if (!options.customMerge) {
66
+ return deepmerge3;
67
+ }
68
+ var customMerge = options.customMerge(key);
69
+ return typeof customMerge === "function" ? customMerge : deepmerge3;
70
+ }
71
+ __name(getMergeFunction, "getMergeFunction");
72
+ function getEnumerableOwnPropertySymbols(target) {
73
+ return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
74
+ return Object.propertyIsEnumerable.call(target, symbol);
75
+ }) : [];
76
+ }
77
+ __name(getEnumerableOwnPropertySymbols, "getEnumerableOwnPropertySymbols");
78
+ function getKeys(target) {
79
+ return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target));
80
+ }
81
+ __name(getKeys, "getKeys");
82
+ function propertyIsOnObject(object, property) {
83
+ try {
84
+ return property in object;
85
+ } catch (_) {
86
+ return false;
87
+ }
88
+ }
89
+ __name(propertyIsOnObject, "propertyIsOnObject");
90
+ function propertyIsUnsafe(target, key) {
91
+ return propertyIsOnObject(target, key) && !(Object.hasOwnProperty.call(target, key) && Object.propertyIsEnumerable.call(target, key));
92
+ }
93
+ __name(propertyIsUnsafe, "propertyIsUnsafe");
94
+ function mergeObject(target, source, options) {
95
+ var destination = {};
96
+ if (options.isMergeableObject(target)) {
97
+ getKeys(target).forEach(function(key) {
98
+ destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
99
+ });
100
+ }
101
+ getKeys(source).forEach(function(key) {
102
+ if (propertyIsUnsafe(target, key)) {
103
+ return;
104
+ }
105
+ if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
106
+ destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
107
+ } else {
108
+ destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
109
+ }
110
+ });
111
+ return destination;
112
+ }
113
+ __name(mergeObject, "mergeObject");
114
+ function deepmerge3(target, source, options) {
115
+ options = options || {};
116
+ options.arrayMerge = options.arrayMerge || defaultArrayMerge;
117
+ options.isMergeableObject = options.isMergeableObject || isMergeableObject;
118
+ options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
119
+ var sourceIsArray = Array.isArray(source);
120
+ var targetIsArray = Array.isArray(target);
121
+ var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
122
+ if (!sourceAndTargetTypesMatch) {
123
+ return cloneUnlessOtherwiseSpecified(source, options);
124
+ } else if (sourceIsArray) {
125
+ return options.arrayMerge(target, source, options);
126
+ } else {
127
+ return mergeObject(target, source, options);
128
+ }
129
+ }
130
+ __name(deepmerge3, "deepmerge");
131
+ deepmerge3.all = /* @__PURE__ */ __name(function deepmergeAll(array, options) {
132
+ if (!Array.isArray(array)) {
133
+ throw new Error("first argument should be an array");
134
+ }
135
+ return array.reduce(function(prev, next) {
136
+ return deepmerge3(prev, next, options);
137
+ }, {});
138
+ }, "deepmergeAll");
139
+ var deepmerge_1 = deepmerge3;
140
+ module.exports = deepmerge_1;
141
+ }
142
+ });
3
143
 
4
144
  // src/actions/build.ts
5
145
  import chalk9 from "chalk";
@@ -81,6 +221,19 @@ var createBuildConfig = /* @__PURE__ */ __name((location, module, target, outDir
81
221
  };
82
222
  }, "createBuildConfig");
83
223
 
224
+ // src/lib/deleteGlob.ts
225
+ import fs from "node:fs";
226
+ import { glob } from "glob";
227
+ var deleteGlob = /* @__PURE__ */ __name((globPath) => {
228
+ const files = glob.sync(globPath);
229
+ for (const file of files) {
230
+ fs.rmSync(file, {
231
+ recursive: true,
232
+ force: true
233
+ });
234
+ }
235
+ }, "deleteGlob");
236
+
84
237
  // src/lib/dependencies/detectDuplicateDependencies.ts
85
238
  import { execSync } from "node:child_process";
86
239
 
@@ -144,7 +297,6 @@ var safeExitAsync = /* @__PURE__ */ __name(async (func, exitOnFail = true) => {
144
297
  // src/lib/dependencies/DuplicateDetector.ts
145
298
  import { EOL } from "node:os";
146
299
  import chalk3 from "chalk";
147
- import uniq from "lodash/uniq.js";
148
300
 
149
301
  // src/lib/jsonFormatters.ts
150
302
  var multiLineToJSONArray = /* @__PURE__ */ __name((output) => {
@@ -215,7 +367,9 @@ var DuplicateDetector = class {
215
367
  acc.duplicateVersions.push(acc.currentVersion);
216
368
  }
217
369
  acc.duplicateVersions.push(version);
218
- acc.duplicateVersions = uniq(acc.duplicateVersions);
370
+ acc.duplicateVersions = [
371
+ ...new Set(acc.duplicateVersions)
372
+ ];
219
373
  }
220
374
  return acc;
221
375
  }
@@ -362,7 +516,7 @@ var mergeEntries = /* @__PURE__ */ __name((a, b) => [
362
516
  ].sort(), "mergeEntries");
363
517
  var generateIgnoreFiles = /* @__PURE__ */ __name((filename3, pkg) => {
364
518
  console.log(chalk4.green(`Generate ${filename3} Files`));
365
- const cwd3 = INIT_CWD() ?? ".";
519
+ const cwd5 = INIT_CWD() ?? ".";
366
520
  const workspaces = pkg ? [
367
521
  yarnWorkspace(pkg)
368
522
  ] : yarnWorkspaces();
@@ -370,7 +524,7 @@ var generateIgnoreFiles = /* @__PURE__ */ __name((filename3, pkg) => {
370
524
  const writeEntries = /* @__PURE__ */ __name((location, entries) => writeLines(`${location}/${filename3}`, entries), "writeEntries");
371
525
  const results = workspaces.map(({ location, name }) => {
372
526
  try {
373
- writeEntries(location, mergeEntries(readEntries(cwd3), readEntries(location)));
527
+ writeEntries(location, mergeEntries(readEntries(cwd5), readEntries(location)));
374
528
  return 0;
375
529
  } catch (ex) {
376
530
  const error = ex;
@@ -383,13 +537,13 @@ var generateIgnoreFiles = /* @__PURE__ */ __name((filename3, pkg) => {
383
537
  }, "generateIgnoreFiles");
384
538
 
385
539
  // src/lib/loadConfig.ts
540
+ var import_deepmerge = __toESM(require_cjs(), 1);
386
541
  import chalk5 from "chalk";
387
542
  import { cosmiconfig } from "cosmiconfig";
388
- import merge from "lodash/merge.js";
389
543
  var config;
390
544
  var loadConfig = /* @__PURE__ */ __name(async (params) => {
391
545
  if (config) {
392
- return merge({}, config, params);
546
+ return (0, import_deepmerge.default)(config, params ?? {});
393
547
  }
394
548
  const cosmicConfigResult = await cosmiconfig("xy", {
395
549
  cache: true
@@ -399,7 +553,7 @@ var loadConfig = /* @__PURE__ */ __name(async (params) => {
399
553
  if (configFilePath) {
400
554
  console.log(chalk5.gray(`Loading config from ${configFilePath}`));
401
555
  }
402
- return merge({}, config, params);
556
+ return (0, import_deepmerge.default)(config, params ?? {});
403
557
  }, "loadConfig");
404
558
 
405
559
  // src/lib/parsedPackageJSON.ts
@@ -621,19 +775,16 @@ var cleanAll = /* @__PURE__ */ __name(({ verbose }) => {
621
775
  // src/actions/clean-docs.ts
622
776
  import path from "node:path";
623
777
  import chalk10 from "chalk";
624
- import { rimrafSync } from "rimraf";
625
778
  var cleanDocs = /* @__PURE__ */ __name(() => {
626
779
  const pkgName = process.env.npm_package_name;
627
780
  console.log(chalk10.green(`Cleaning Docs [${pkgName}]`));
628
- for (const { location } of yarnWorkspaces()) rimrafSync(path.join(location, "docs"), {
629
- glob: true
630
- });
781
+ for (const { location } of yarnWorkspaces()) deleteGlob(path.join(location, "docs"));
631
782
  return 0;
632
783
  }, "cleanDocs");
633
784
 
634
785
  // src/actions/compile.ts
635
786
  import chalk11 from "chalk";
636
- var compile = /* @__PURE__ */ __name(({ verbose, target, pkg, incremental, publint: publint2 }) => {
787
+ var compile = /* @__PURE__ */ __name(({ verbose, target, pkg, incremental, publint: publint2, jobs }) => {
637
788
  return pkg ? compilePackage({
638
789
  pkg,
639
790
  publint: publint2,
@@ -643,7 +794,8 @@ var compile = /* @__PURE__ */ __name(({ verbose, target, pkg, incremental, publi
643
794
  incremental,
644
795
  publint: publint2,
645
796
  target,
646
- verbose
797
+ verbose,
798
+ jobs
647
799
  });
648
800
  }, "compile");
649
801
  var compilePackage = /* @__PURE__ */ __name(({ target, pkg }) => {
@@ -771,25 +923,33 @@ var copyAssets = /* @__PURE__ */ __name(async ({ target, pkg }) => {
771
923
  }, "copyAssets");
772
924
 
773
925
  // src/actions/cycle.ts
774
- var cycle = /* @__PURE__ */ __name(() => {
775
- const rules = [
776
- `"'import/no-cycle': [1, { maxDepth: 6 }]"`,
777
- `"'import/no-internal-modules': ['off']"`
778
- ];
779
- return runSteps("Cycle", [
780
- [
781
- "yarn",
782
- [
783
- "eslint",
784
- ...rules.flatMap((rule) => [
785
- "--rule",
786
- rule
787
- ]),
788
- "--cache",
789
- "."
790
- ]
791
- ]
926
+ import { cwd } from "node:process";
927
+ import { ESLint } from "eslint";
928
+ var cycle = /* @__PURE__ */ __name(async () => {
929
+ const eslint = new ESLint({
930
+ fix: false,
931
+ overrideConfig: {
932
+ rules: {
933
+ "import-x/no-cycle": [
934
+ "error",
935
+ {
936
+ maxDepth: 10
937
+ }
938
+ ]
939
+ }
940
+ }
941
+ });
942
+ const results = await eslint.lintFiles([
943
+ "src/**/*.ts*",
944
+ "packages/**/src/**/*.ts*"
792
945
  ]);
946
+ const formatter = await eslint.loadFormatter("stylish");
947
+ const resultText = formatter.format(results, {
948
+ cwd: cwd(),
949
+ rulesMeta: {}
950
+ });
951
+ console.log(resultText);
952
+ return results.length;
793
953
  }, "cycle");
794
954
 
795
955
  // src/actions/dead.ts
@@ -1202,7 +1362,7 @@ var license = /* @__PURE__ */ __name(async (pkg) => {
1202
1362
 
1203
1363
  // src/actions/lint.ts
1204
1364
  import chalk18 from "chalk";
1205
- import { ESLint } from "eslint";
1365
+ import { ESLint as ESLint2 } from "eslint";
1206
1366
  var dumpMessages = /* @__PURE__ */ __name((lintResults) => {
1207
1367
  const colors = [
1208
1368
  "white",
@@ -1229,7 +1389,7 @@ var lintPackage = /* @__PURE__ */ __name(async ({ pkg }) => {
1229
1389
  console.error(chalk18.red(`Unable to locate package [${chalk18.magenta(pkg)}]`));
1230
1390
  process.exit(1);
1231
1391
  }
1232
- const engine = new ESLint({
1392
+ const engine = new ESLint2({
1233
1393
  cache: true
1234
1394
  });
1235
1395
  const lintResults = await engine.lintFiles(workspace.location);
@@ -1237,7 +1397,7 @@ var lintPackage = /* @__PURE__ */ __name(async ({ pkg }) => {
1237
1397
  return lintResults.reduce((prev, lintResult) => prev + lintResult.errorCount, 0);
1238
1398
  }, "lintPackage");
1239
1399
  var lintAll = /* @__PURE__ */ __name(async () => {
1240
- const engine = new ESLint({
1400
+ const engine = new ESLint2({
1241
1401
  cache: true
1242
1402
  });
1243
1403
  const lintResults = await engine.lintFiles("./**/*.*");
@@ -1307,7 +1467,6 @@ var npmignoreGen = /* @__PURE__ */ __name((pkg) => generateIgnoreFiles(filename2
1307
1467
  // src/actions/package/clean-outputs.ts
1308
1468
  import path3 from "node:path";
1309
1469
  import chalk19 from "chalk";
1310
- import { rimraf } from "rimraf";
1311
1470
  var packageCleanOutputs = /* @__PURE__ */ __name(async () => {
1312
1471
  const pkg = process.env.INIT_CWD ?? ".";
1313
1472
  const pkgName = process.env.npm_package_name;
@@ -1317,14 +1476,13 @@ var packageCleanOutputs = /* @__PURE__ */ __name(async () => {
1317
1476
  path3.join(pkg, "docs")
1318
1477
  ];
1319
1478
  console.log(chalk19.green(`Cleaning Outputs [${pkgName}]`));
1320
- await Promise.all(folders.map((folder) => rimraf(folder)));
1479
+ await Promise.all(folders.map((folder) => deleteGlob(folder)));
1321
1480
  return 0;
1322
1481
  }, "packageCleanOutputs");
1323
1482
 
1324
1483
  // src/actions/package/clean-typescript.ts
1325
1484
  import path4 from "node:path";
1326
1485
  import chalk20 from "chalk";
1327
- import { rimraf as rimraf2 } from "rimraf";
1328
1486
  var packageCleanTypescript = /* @__PURE__ */ __name(async () => {
1329
1487
  const pkg = process.env.INIT_CWD ?? ".";
1330
1488
  const pkgName = process.env.npm_package_name;
@@ -1334,7 +1492,7 @@ var packageCleanTypescript = /* @__PURE__ */ __name(async () => {
1334
1492
  path4.join(pkg, ".tsconfig.*"),
1335
1493
  path4.join(pkg, ".eslintcache")
1336
1494
  ];
1337
- await Promise.all(files.map((file) => rimraf2(file)));
1495
+ await Promise.all(files.map((file) => deleteGlob(file)));
1338
1496
  return 0;
1339
1497
  }, "packageCleanTypescript");
1340
1498
 
@@ -1347,14 +1505,17 @@ var packageClean = /* @__PURE__ */ __name(async () => {
1347
1505
  }, "packageClean");
1348
1506
 
1349
1507
  // src/actions/package/compile/compile.ts
1350
- import chalk23 from "chalk";
1508
+ import chalk24 from "chalk";
1351
1509
 
1352
1510
  // src/actions/package/publint.ts
1353
- import { promises as fs } from "node:fs";
1511
+ import { promises as fs2 } from "node:fs";
1354
1512
  import chalk21 from "chalk";
1513
+ import sortPackageJson from "sort-package-json";
1355
1514
  var packagePublint = /* @__PURE__ */ __name(async (params) => {
1356
1515
  const pkgDir = process.env.INIT_CWD;
1357
- const pkg = JSON.parse(await fs.readFile(`${pkgDir}/package.json`, "utf8"));
1516
+ const sortedPkg = sortPackageJson(await fs2.readFile(`${pkgDir}/package.json`, "utf8"));
1517
+ await fs2.writeFile(`${pkgDir}/package.json`, sortedPkg);
1518
+ const pkg = JSON.parse(await fs2.readFile(`${pkgDir}/package.json`, "utf8"));
1358
1519
  console.log(chalk21.green(`Publint: ${pkg.name}`));
1359
1520
  console.log(chalk21.gray(pkgDir));
1360
1521
  const { publint: publint2 } = await import("publint");
@@ -1391,23 +1552,20 @@ var packagePublint = /* @__PURE__ */ __name(async (params) => {
1391
1552
  }, "packagePublint");
1392
1553
 
1393
1554
  // src/actions/package/compile/packageCompileTsc.ts
1394
- import { cwd } from "node:process";
1555
+ import { cwd as cwd2 } from "node:process";
1395
1556
  import chalk22 from "chalk";
1396
1557
  import { createProgramFromConfig } from "tsc-prog";
1397
1558
  import { DiagnosticCategory, formatDiagnosticsWithColorAndContext, getLineAndCharacterOfPosition, getPreEmitDiagnostics } from "typescript";
1398
1559
 
1399
1560
  // src/actions/package/compile/getCompilerOptions.ts
1561
+ var import_deepmerge2 = __toESM(require_cjs(), 1);
1400
1562
  import { createRequire } from "node:module";
1401
- import merge2 from "lodash/merge.js";
1402
1563
  import { findConfigFile, readConfigFile, sys } from "typescript";
1403
1564
  var getNested = /* @__PURE__ */ __name((config2) => {
1404
1565
  if (config2.extends) {
1405
1566
  const require2 = createRequire(import.meta.url);
1406
1567
  const opts = require2(config2.extends);
1407
- return {
1408
- ...getNested(opts),
1409
- ...config2.compilerOptions
1410
- };
1568
+ return (0, import_deepmerge2.default)(getNested(opts), config2.compilerOptions ?? {});
1411
1569
  }
1412
1570
  return config2.compilerOptions;
1413
1571
  }, "getNested");
@@ -1415,15 +1573,15 @@ var getCompilerOptionsJSONFollowExtends = /* @__PURE__ */ __name((filename3) =>
1415
1573
  const config2 = readConfigFile(filename3, sys.readFile).config;
1416
1574
  return getNested(config2);
1417
1575
  }, "getCompilerOptionsJSONFollowExtends");
1418
- var getCompilerOptions = /* @__PURE__ */ __name((options, tsconfig = "tsconfig.json") => {
1576
+ var getCompilerOptions = /* @__PURE__ */ __name((options = {}, tsconfig = "tsconfig.json") => {
1419
1577
  const configFileName = findConfigFile("./", sys.fileExists, tsconfig);
1420
- const configFileCompilerOptions = configFileName ? getCompilerOptionsJSONFollowExtends(configFileName) : void 0;
1421
- return merge2({}, configFileCompilerOptions, options);
1578
+ const configFileCompilerOptions = (configFileName ? getCompilerOptionsJSONFollowExtends(configFileName) : void 0) ?? {};
1579
+ return (0, import_deepmerge2.default)(configFileCompilerOptions, options);
1422
1580
  }, "getCompilerOptions");
1423
1581
 
1424
1582
  // src/actions/package/compile/packageCompileTsc.ts
1425
1583
  var packageCompileTsc = /* @__PURE__ */ __name(async (noEmit, config2, compilerOptionsParam) => {
1426
- const pkg = process.env.INIT_CWD ?? cwd();
1584
+ const pkg = process.env.INIT_CWD ?? cwd2();
1427
1585
  const publint2 = config2?.publint ?? true;
1428
1586
  const verbose = config2?.verbose ?? false;
1429
1587
  const formatHost = {
@@ -1446,7 +1604,7 @@ var packageCompileTsc = /* @__PURE__ */ __name(async (noEmit, config2, compilerO
1446
1604
  }
1447
1605
  };
1448
1606
  const program = createProgramFromConfig({
1449
- basePath: pkg ?? cwd(),
1607
+ basePath: pkg ?? cwd2(),
1450
1608
  compilerOptions,
1451
1609
  exclude: [
1452
1610
  "dist",
@@ -1477,9 +1635,9 @@ var packageCompileTsc = /* @__PURE__ */ __name(async (noEmit, config2, compilerO
1477
1635
  import { build as build2, defineConfig } from "tsup";
1478
1636
 
1479
1637
  // src/actions/package/compile/inputs.ts
1480
- import { glob } from "glob";
1638
+ import { glob as glob2 } from "glob";
1481
1639
  var getAllInputs2 = /* @__PURE__ */ __name((folder) => {
1482
- return glob.sync(`${folder}/**/*.*`, {
1640
+ return glob2.sync(`${folder}/**/*.*`, {
1483
1641
  ignore: [
1484
1642
  "**/*.spec.*",
1485
1643
  "**/*.stories.*",
@@ -1512,8 +1670,69 @@ var buildEntries = /* @__PURE__ */ __name((folder, entryMode, verbose = false) =
1512
1670
  }
1513
1671
  }, "buildEntries");
1514
1672
 
1673
+ // src/actions/package/compile/packageCompileTscTypes.ts
1674
+ import { cwd as cwd3 } from "node:process";
1675
+ import chalk23 from "chalk";
1676
+ import { createProgramFromConfig as createProgramFromConfig2 } from "tsc-prog";
1677
+ import { DiagnosticCategory as DiagnosticCategory2 } from "typescript";
1678
+ var packageCompileTscTypes = /* @__PURE__ */ __name((folder = "src", { verbose } = {}, compilerOptionsParam) => {
1679
+ const pkg = process.env.INIT_CWD ?? cwd3();
1680
+ if (verbose) {
1681
+ console.log(`Compiling types with TSC [${pkg}]`);
1682
+ }
1683
+ const compilerOptions = {
1684
+ ...getCompilerOptions({
1685
+ declaration: true,
1686
+ emitDeclarationOnly: true,
1687
+ outDir: "dist",
1688
+ removeComments: true,
1689
+ skipDefaultLibCheck: true,
1690
+ skipLibCheck: true,
1691
+ sourceMap: true
1692
+ }),
1693
+ ...compilerOptionsParam
1694
+ };
1695
+ const files = buildEntries(folder, "all");
1696
+ const result = createProgramFromConfig2({
1697
+ basePath: pkg ?? cwd3(),
1698
+ compilerOptions,
1699
+ exclude: [
1700
+ "dist",
1701
+ "docs",
1702
+ "**/*.spec.*",
1703
+ "**/*.stories.*",
1704
+ "src/**/spec/**/*"
1705
+ ],
1706
+ files
1707
+ }).emit();
1708
+ const diagResults = result.diagnostics.length;
1709
+ for (const diag of result.diagnostics) {
1710
+ switch (diag.category) {
1711
+ case DiagnosticCategory2.Error: {
1712
+ console.error(chalk23.red(diag.messageText));
1713
+ console.error(chalk23.grey(pkg));
1714
+ console.error(chalk23.blue(diag.file?.fileName));
1715
+ break;
1716
+ }
1717
+ case DiagnosticCategory2.Warning: {
1718
+ console.error(chalk23.yellow(diag.messageText));
1719
+ console.error(chalk23.grey(pkg));
1720
+ console.error(chalk23.blue(diag.file?.fileName));
1721
+ break;
1722
+ }
1723
+ case DiagnosticCategory2.Suggestion: {
1724
+ console.error(chalk23.white(diag.messageText));
1725
+ console.error(chalk23.grey(pkg));
1726
+ console.error(chalk23.blue(diag.file?.fileName));
1727
+ break;
1728
+ }
1729
+ }
1730
+ }
1731
+ return diagResults;
1732
+ }, "packageCompileTscTypes");
1733
+
1515
1734
  // src/actions/package/compile/packageCompileTsup.ts
1516
- var compileFolder = /* @__PURE__ */ __name(async (folder, entryMode = "single", options, _verbose) => {
1735
+ var compileFolder = /* @__PURE__ */ __name(async (folder, entryMode = "single", options, verbose) => {
1517
1736
  const outDir = options?.outDir ?? "dist";
1518
1737
  const entry = buildEntries(folder, entryMode);
1519
1738
  const optionsResult = defineConfig({
@@ -1527,7 +1746,7 @@ var compileFolder = /* @__PURE__ */ __name(async (folder, entryMode = "single",
1527
1746
  ],
1528
1747
  outDir,
1529
1748
  silent: true,
1530
- sourcemap: true,
1749
+ sourcemap: false,
1531
1750
  splitting: false,
1532
1751
  tsconfig: "tsconfig.json",
1533
1752
  ...options
@@ -1543,7 +1762,11 @@ var compileFolder = /* @__PURE__ */ __name(async (folder, entryMode = "single",
1543
1762
  ];
1544
1763
  }))).flat();
1545
1764
  await Promise.all(optionsList.map((options2) => build2(options2)));
1546
- return 0;
1765
+ return packageCompileTscTypes(folder, {
1766
+ verbose
1767
+ }, {
1768
+ outDir
1769
+ });
1547
1770
  }, "compileFolder");
1548
1771
  var packageCompileTsup = /* @__PURE__ */ __name(async (config2) => {
1549
1772
  const compile2 = config2?.compile;
@@ -1630,7 +1853,7 @@ var packageCompileTsup = /* @__PURE__ */ __name(async (config2) => {
1630
1853
  // src/actions/package/compile/compile.ts
1631
1854
  var packageCompile = /* @__PURE__ */ __name(async (inConfig = {}) => {
1632
1855
  const pkg = process.env.INIT_CWD;
1633
- console.log(chalk23.green(`Compiling ${pkg}`));
1856
+ console.log(chalk24.green(`Compiling ${pkg}`));
1634
1857
  const config2 = await loadConfig(inConfig);
1635
1858
  const publint2 = config2.publint;
1636
1859
  const mode = config2.compile?.mode ?? "tsup";
@@ -1650,7 +1873,7 @@ var packageCompile = /* @__PURE__ */ __name(async (inConfig = {}) => {
1650
1873
 
1651
1874
  // src/actions/package/copy-assets.ts
1652
1875
  import path5 from "node:path/posix";
1653
- import chalk24 from "chalk";
1876
+ import chalk25 from "chalk";
1654
1877
  import cpy2 from "cpy";
1655
1878
  var copyTargetAssets2 = /* @__PURE__ */ __name(async (target, name, location) => {
1656
1879
  try {
@@ -1669,7 +1892,7 @@ var copyTargetAssets2 = /* @__PURE__ */ __name(async (target, name, location) =>
1669
1892
  flat: false
1670
1893
  });
1671
1894
  if (values.length > 0) {
1672
- console.log(chalk24.green(`Copying Assets [${target.toUpperCase()}] - ${name} - ${location}`));
1895
+ console.log(chalk25.green(`Copying Assets [${target.toUpperCase()}] - ${name} - ${location}`));
1673
1896
  }
1674
1897
  for (const value of values) {
1675
1898
  console.log(`${value.split("/").pop()} => ./dist/${target}`);
@@ -1699,8 +1922,8 @@ var packageCopyAssets = /* @__PURE__ */ __name(async ({ target }) => {
1699
1922
 
1700
1923
  // src/actions/package/deps.ts
1701
1924
  import { existsSync as existsSync5, readFileSync as readFileSync5 } from "node:fs";
1702
- import { cwd as cwd2 } from "node:process";
1703
- import chalk25 from "chalk";
1925
+ import { cwd as cwd4 } from "node:process";
1926
+ import chalk26 from "chalk";
1704
1927
  import depcheck from "depcheck";
1705
1928
  var special = depcheck.special;
1706
1929
  var defaultIgnorePatterns = [
@@ -1727,21 +1950,21 @@ var defaultIgnoreDevPatterns = [
1727
1950
  var reportUnused = /* @__PURE__ */ __name((name, unused) => {
1728
1951
  if (unused.length > 0) {
1729
1952
  const message = [
1730
- chalk25.yellow(`${unused.length} Unused ${name}`)
1953
+ chalk26.yellow(`${unused.length} Unused ${name}`)
1731
1954
  ];
1732
- for (const value of unused) message.push(chalk25.gray(` ${value}`));
1955
+ for (const value of unused) message.push(chalk26.gray(` ${value}`));
1733
1956
  console.log(message.join("\n"));
1734
1957
  }
1735
1958
  }, "reportUnused");
1736
1959
  var reportMissing = /* @__PURE__ */ __name((name, missing) => {
1737
1960
  if (Object.keys(missing).length > 0) {
1738
1961
  const message = [
1739
- chalk25.yellow(`${Object.entries(missing).length} Missing ${name}`)
1962
+ chalk26.yellow(`${Object.entries(missing).length} Missing ${name}`)
1740
1963
  ];
1741
1964
  for (const [key, value] of Object.entries(missing)) {
1742
- message.push(`${key}`, chalk25.gray(` ${value.at(0)}`));
1965
+ message.push(`${key}`, chalk26.gray(` ${value.at(0)}`));
1743
1966
  }
1744
- console.log(chalk25.yellow(message.join("\n")));
1967
+ console.log(chalk26.yellow(message.join("\n")));
1745
1968
  }
1746
1969
  }, "reportMissing");
1747
1970
  var analyzeDeps = /* @__PURE__ */ __name(async (pkg, ignoreMatches) => {
@@ -1796,7 +2019,7 @@ var analyzeDeps = /* @__PURE__ */ __name(async (pkg, ignoreMatches) => {
1796
2019
  };
1797
2020
  }, "analyzeDeps");
1798
2021
  var packageDeps = /* @__PURE__ */ __name(async () => {
1799
- const pkg = process.env.INIT_CWD ?? cwd2();
2022
+ const pkg = process.env.INIT_CWD ?? cwd4();
1800
2023
  const pkgName = process.env.npm_package_name;
1801
2024
  const packageContent = existsSync5(`${pkg}/package.json`) ? JSON.parse(readFileSync5(`${pkg}/package.json`, {
1802
2025
  encoding: "utf8"
@@ -1846,10 +2069,10 @@ var packageDeps = /* @__PURE__ */ __name(async () => {
1846
2069
  reportUnused("dependencies", unusedDeps);
1847
2070
  reportUnused("devDependencies", unusedDevDeps);
1848
2071
  if (Object.entries(invalidDirs).length > 0) {
1849
- for (const [key, value] of Object.entries(invalidDirs)) console.warn(chalk25.gray(`Invalid Dir: ${key}: ${value}`));
2072
+ for (const [key, value] of Object.entries(invalidDirs)) console.warn(chalk26.gray(`Invalid Dir: ${key}: ${value}`));
1850
2073
  }
1851
2074
  if (Object.entries(invalidFiles).length > 0) {
1852
- for (const [key, value] of Object.entries(invalidFiles)) console.warn(chalk25.gray(`Invalid File: ${key}: ${value}`));
2075
+ for (const [key, value] of Object.entries(invalidFiles)) console.warn(chalk26.gray(`Invalid File: ${key}: ${value}`));
1853
2076
  }
1854
2077
  reportMissing("dependencies", missingDepsObject);
1855
2078
  reportMissing("devDependencies", missingDevDepsObject);
@@ -1860,7 +2083,7 @@ var packageDeps = /* @__PURE__ */ __name(async () => {
1860
2083
  // src/actions/package/gen-docs.ts
1861
2084
  import { existsSync as existsSync6 } from "node:fs";
1862
2085
  import path6 from "node:path";
1863
- import chalk26 from "chalk";
2086
+ import chalk27 from "chalk";
1864
2087
  import { Application, ArgumentsReader, TSConfigReader, TypeDocReader } from "typedoc";
1865
2088
  var ExitCodes = {
1866
2089
  CompileError: 3,
@@ -1962,7 +2185,7 @@ var runTypeDoc = /* @__PURE__ */ __name(async (app) => {
1962
2185
  return ExitCodes.OutputError;
1963
2186
  }
1964
2187
  }
1965
- console.log(chalk26.green(`${pkgName} - Ok`));
2188
+ console.log(chalk27.green(`${pkgName} - Ok`));
1966
2189
  return ExitCodes.Ok;
1967
2190
  }, "runTypeDoc");
1968
2191
 
@@ -2029,7 +2252,7 @@ var rebuild = /* @__PURE__ */ __name(({ target }) => {
2029
2252
  }, "rebuild");
2030
2253
 
2031
2254
  // src/actions/recompile.ts
2032
- import chalk27 from "chalk";
2255
+ import chalk28 from "chalk";
2033
2256
  var recompile = /* @__PURE__ */ __name(async ({ verbose, target, pkg, incremental }) => {
2034
2257
  return pkg ? await recompilePackage({
2035
2258
  pkg,
@@ -2090,7 +2313,7 @@ var recompileAll = /* @__PURE__ */ __name(async ({ jobs, verbose, target, increm
2090
2313
  `${jobs}`
2091
2314
  ] : [];
2092
2315
  if (jobs) {
2093
- console.log(chalk27.blue(`Jobs set to [${jobs}]`));
2316
+ console.log(chalk28.blue(`Jobs set to [${jobs}]`));
2094
2317
  }
2095
2318
  const result = await runStepsAsync(`Recompile${incremental ? "-Incremental" : ""} [All]`, [
2096
2319
  [
@@ -2120,7 +2343,7 @@ var recompileAll = /* @__PURE__ */ __name(async ({ jobs, verbose, target, increm
2120
2343
  ]
2121
2344
  ]
2122
2345
  ]);
2123
- console.log(`${chalk27.gray("Recompiled in")} [${chalk27.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk27.gray("seconds")}`);
2346
+ console.log(`${chalk28.gray("Recompiled in")} [${chalk28.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk28.gray("seconds")}`);
2124
2347
  return result;
2125
2348
  }, "recompileAll");
2126
2349
 
@@ -2220,7 +2443,7 @@ var sonar = /* @__PURE__ */ __name(() => {
2220
2443
  }, "sonar");
2221
2444
 
2222
2445
  // src/actions/statics.ts
2223
- import chalk28 from "chalk";
2446
+ import chalk29 from "chalk";
2224
2447
  var DefaultDependencies = [
2225
2448
  "axios",
2226
2449
  "@xylabs/pixel",
@@ -2231,7 +2454,7 @@ var DefaultDependencies = [
2231
2454
  "@mui/system"
2232
2455
  ];
2233
2456
  var statics = /* @__PURE__ */ __name(() => {
2234
- console.log(chalk28.green("Check Required Static Dependencies"));
2457
+ console.log(chalk29.green("Check Required Static Dependencies"));
2235
2458
  const statics2 = parsedPackageJSON()?.xy?.deps?.statics;
2236
2459
  return detectDuplicateDependencies(statics2, DefaultDependencies);
2237
2460
  }, "statics");
@@ -2349,7 +2572,7 @@ var loadPackageConfig = /* @__PURE__ */ __name(async () => {
2349
2572
  }, "loadPackageConfig");
2350
2573
 
2351
2574
  // src/xy/xy.ts
2352
- import chalk30 from "chalk";
2575
+ import chalk31 from "chalk";
2353
2576
 
2354
2577
  // src/xy/xyBuildCommands.ts
2355
2578
  var xyBuildCommands = /* @__PURE__ */ __name((args) => {
@@ -2585,15 +2808,15 @@ var xyInstallCommands = /* @__PURE__ */ __name((args) => {
2585
2808
  }, "xyInstallCommands");
2586
2809
 
2587
2810
  // src/xy/xyLintCommands.ts
2588
- import chalk29 from "chalk";
2811
+ import chalk30 from "chalk";
2589
2812
  var xyLintCommands = /* @__PURE__ */ __name((args) => {
2590
2813
  return args.command("cycle [package]", "Cycle - Check for dependency cycles", (yargs2) => {
2591
2814
  return packagePositionalParam(yargs2);
2592
- }, (argv) => {
2815
+ }, async (argv) => {
2593
2816
  const start = Date.now();
2594
2817
  if (argv.verbose) console.log("Cycle");
2595
- process.exitCode = cycle();
2596
- console.log(chalk29.blue(`Finished in ${Date.now() - start}ms`));
2818
+ process.exitCode = await cycle();
2819
+ console.log(chalk30.blue(`Finished in ${Date.now() - start}ms`));
2597
2820
  }).command("lint [package]", "Lint - Run Eslint", (yargs2) => {
2598
2821
  return packagePositionalParam(yargs2);
2599
2822
  }, async (argv) => {
@@ -2602,21 +2825,21 @@ var xyLintCommands = /* @__PURE__ */ __name((args) => {
2602
2825
  process.exitCode = argv.fix ? fix() : argv.profile ? lintProfile() : await lint({
2603
2826
  pkg: argv.package
2604
2827
  });
2605
- console.log(chalk29.blue(`Finished in ${Date.now() - start}ms`));
2828
+ console.log(chalk30.blue(`Finished in ${Date.now() - start}ms`));
2606
2829
  }).command("fix [package]", "Fix - Run Eslint w/fix", (yargs2) => {
2607
2830
  return packagePositionalParam(yargs2);
2608
2831
  }, (argv) => {
2609
2832
  const start = Date.now();
2610
2833
  if (argv.verbose) console.log("Fix");
2611
2834
  process.exitCode = fix();
2612
- console.log(chalk29.blue(`Finished in ${Date.now() - start}ms`));
2835
+ console.log(chalk30.blue(`Finished in ${Date.now() - start}ms`));
2613
2836
  }).command("relint [package]", "Relint - Clean & Lint", (yargs2) => {
2614
2837
  return packagePositionalParam(yargs2);
2615
2838
  }, (argv) => {
2616
2839
  if (argv.verbose) console.log("Relinting");
2617
2840
  const start = Date.now();
2618
2841
  process.exitCode = relint();
2619
- console.log(chalk29.blue(`Finished in ${Date.now() - start}ms`));
2842
+ console.log(chalk30.blue(`Finished in ${Date.now() - start}ms`));
2620
2843
  }).command("publint [package]", "Publint - Run Publint", (yargs2) => {
2621
2844
  return packagePositionalParam(yargs2);
2622
2845
  }, async (argv) => {
@@ -2626,14 +2849,14 @@ var xyLintCommands = /* @__PURE__ */ __name((args) => {
2626
2849
  pkg: argv.package,
2627
2850
  verbose: !!argv.verbose
2628
2851
  });
2629
- console.log(chalk29.blue(`Finished in ${Date.now() - start}ms`));
2852
+ console.log(chalk30.blue(`Finished in ${Date.now() - start}ms`));
2630
2853
  }).command("sonar", "Sonar - Run Sonar Check", (yargs2) => {
2631
2854
  return packagePositionalParam(yargs2);
2632
2855
  }, (argv) => {
2633
2856
  const start = Date.now();
2634
2857
  if (argv.verbose) console.log("Sonar Check");
2635
2858
  process.exitCode = sonar();
2636
- console.log(chalk29.blue(`Finished in ${Date.now() - start}ms`));
2859
+ console.log(chalk30.blue(`Finished in ${Date.now() - start}ms`));
2637
2860
  });
2638
2861
  }, "xyLintCommands");
2639
2862
 
@@ -2686,8 +2909,8 @@ var xyParseOptions = /* @__PURE__ */ __name(() => {
2686
2909
  var xy = /* @__PURE__ */ __name(async () => {
2687
2910
  const options = xyParseOptions();
2688
2911
  return await xyBuildCommands(xyCommonCommands(xyInstallCommands(xyDeployCommands(xyLintCommands(options))))).demandCommand(1).command("*", "", () => {
2689
- console.error(chalk30.yellow(`Command not found [${chalk30.magenta(process.argv[2])}]`));
2690
- console.log(chalk30.gray("Try 'yarn xy --help' for list of commands"));
2912
+ console.error(chalk31.yellow(`Command not found [${chalk31.magenta(process.argv[2])}]`));
2913
+ console.log(chalk31.gray("Try 'yarn xy --help' for list of commands"));
2691
2914
  }).version().help().argv;
2692
2915
  }, "xy");
2693
2916
  export {
@@ -2710,6 +2933,7 @@ export {
2710
2933
  dead,
2711
2934
  defaultBuildConfig,
2712
2935
  defaultReadFileSyncOptions,
2936
+ deleteGlob,
2713
2937
  deploy,
2714
2938
  deployMajor,
2715
2939
  deployMinor,