@xylabs/ts-scripts-yarn3 6.3.3 → 6.3.5

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.
@@ -776,15 +776,13 @@ var copyAssets = /* @__PURE__ */ __name(async ({ target, pkg }) => {
776
776
  }, "copyAssets");
777
777
 
778
778
  // src/actions/cycle.ts
779
- import chalk13 from "chalk";
780
- var cycle = /* @__PURE__ */ __name(({ verbose, pkg, incremental, jobs } = {}) => {
779
+ import { cruise } from "dependency-cruiser";
780
+ var cycle = /* @__PURE__ */ __name(async ({ verbose, pkg } = {}) => {
781
781
  return pkg ? cyclePackage({
782
782
  pkg,
783
783
  verbose
784
- }) : cycleAll({
785
- incremental,
786
- verbose,
787
- jobs
784
+ }) : await cycleAll({
785
+ verbose
788
786
  });
789
787
  }, "cycle");
790
788
  var cyclePackage = /* @__PURE__ */ __name(({ pkg, verbose }) => {
@@ -806,45 +804,45 @@ var cyclePackage = /* @__PURE__ */ __name(({ pkg, verbose }) => {
806
804
  ]
807
805
  ]);
808
806
  }, "cyclePackage");
809
- var cycleAll = /* @__PURE__ */ __name(({ jobs, verbose, incremental }) => {
810
- const start = Date.now();
811
- const verboseOptions = verbose ? [
812
- "--verbose"
813
- ] : [
814
- "--no-verbose"
815
- ];
816
- const incrementalOptions = incremental ? [
817
- "--since",
818
- "-Ap",
819
- "--topological-dev"
820
- ] : [
821
- "--parallel",
822
- "-Ap"
823
- ];
824
- const jobsOptions = jobs ? [
825
- "-j",
826
- `${jobs}`
827
- ] : [];
828
- if (jobs) {
829
- console.log(chalk13.blue(`Jobs set to [${jobs}]`));
830
- }
831
- const result = runSteps(`Cycle${incremental ? "-Incremental" : ""} [All]`, [
832
- [
833
- "yarn",
834
- [
835
- "workspaces",
836
- "foreach",
837
- ...incrementalOptions,
838
- ...jobsOptions,
839
- ...verboseOptions,
840
- "run",
841
- "package-cycle",
842
- ...verboseOptions
807
+ var cycleAll = /* @__PURE__ */ __name(async ({ verbose = false }) => {
808
+ const pkgName = process.env.npm_package_name;
809
+ const cruiseOptions = {
810
+ ruleSet: {
811
+ forbidden: [
812
+ {
813
+ name: "no-circular",
814
+ severity: "error",
815
+ comment: "This dependency creates a circular reference",
816
+ from: {},
817
+ to: {
818
+ circular: true
819
+ }
820
+ }
843
821
  ]
844
- ]
845
- ]);
846
- console.log(`${chalk13.gray("Cycles Checked in")} [${chalk13.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk13.gray("seconds")}`);
847
- return result;
822
+ },
823
+ exclude: "node_modules|packages/.*/packages",
824
+ validate: true,
825
+ doNotFollow: {
826
+ path: "node_modules|packages/.*/packages"
827
+ },
828
+ tsPreCompilationDeps: false,
829
+ combinedDependencies: true,
830
+ outputType: verbose ? "text" : "err"
831
+ };
832
+ const target = "**/src";
833
+ console.log(`Checking for circular dependencies in ${target}...`);
834
+ const result = await cruise([
835
+ target
836
+ ], cruiseOptions);
837
+ if (result.output) {
838
+ console.log(result.output);
839
+ }
840
+ if (result.exitCode === 0) {
841
+ console.log(`${pkgName} \u2705 No dependency violations`);
842
+ } else {
843
+ console.error(`${pkgName} \u274C Dependency violations found`);
844
+ }
845
+ return result.exitCode;
848
846
  }, "cycleAll");
849
847
 
850
848
  // src/actions/dead.ts
@@ -966,18 +964,18 @@ var deployNext = /* @__PURE__ */ __name(() => {
966
964
  }, "deployNext");
967
965
 
968
966
  // src/actions/dupdeps.ts
969
- import chalk14 from "chalk";
967
+ import chalk13 from "chalk";
970
968
  var dupdeps = /* @__PURE__ */ __name(() => {
971
- console.log(chalk14.green("Checking all Dependencies for Duplicates"));
969
+ console.log(chalk13.green("Checking all Dependencies for Duplicates"));
972
970
  const allDependencies = parsedPackageJSON()?.dependencies;
973
971
  const dependencies = Object.entries(allDependencies).map(([k]) => k);
974
972
  return detectDuplicateDependencies(dependencies);
975
973
  }, "dupdeps");
976
974
 
977
975
  // src/actions/lint.ts
978
- import chalk15 from "chalk";
976
+ import chalk14 from "chalk";
979
977
  var lintPackage = /* @__PURE__ */ __name(({ pkg, fix: fix2 }) => {
980
- console.log(chalk15.gray(`${fix2 ? "Fix" : "Lint"} [${pkg}]`));
978
+ console.log(chalk14.gray(`${fix2 ? "Fix" : "Lint"} [${pkg}]`));
981
979
  const start = Date.now();
982
980
  const result = runSteps(`${fix2 ? "Fix" : "Lint"} [${pkg}]`, [
983
981
  [
@@ -990,7 +988,7 @@ var lintPackage = /* @__PURE__ */ __name(({ pkg, fix: fix2 }) => {
990
988
  ]
991
989
  ]
992
990
  ]);
993
- console.log(chalk15.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk15.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk15.gray("seconds")}`));
991
+ console.log(chalk14.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk14.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk14.gray("seconds")}`));
994
992
  return result;
995
993
  }, "lintPackage");
996
994
  var lint = /* @__PURE__ */ __name(({ pkg, verbose, incremental, fix: fix2 } = {}) => {
@@ -1004,17 +1002,21 @@ var lint = /* @__PURE__ */ __name(({ pkg, verbose, incremental, fix: fix2 } = {}
1004
1002
  });
1005
1003
  }, "lint");
1006
1004
  var lintAllPackages = /* @__PURE__ */ __name(({ fix: fix2 = false } = {}) => {
1007
- console.log(chalk15.gray(`${fix2 ? "Fix" : "Lint"} [All-Packages]`));
1005
+ console.log(chalk14.gray(`${fix2 ? "Fix" : "Lint"} [All-Packages]`));
1008
1006
  const start = Date.now();
1007
+ const fixOptions = fix2 ? [
1008
+ "--fix"
1009
+ ] : [];
1009
1010
  const result = runSteps(`${fix2 ? "Fix" : "Lint"} [All-Packages]`, [
1010
1011
  [
1011
1012
  "yarn",
1012
1013
  [
1013
- "eslint"
1014
+ "eslint",
1015
+ ...fixOptions
1014
1016
  ]
1015
1017
  ]
1016
1018
  ]);
1017
- console.log(chalk15.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk15.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk15.gray("seconds")}`));
1019
+ console.log(chalk14.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk14.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk14.gray("seconds")}`));
1018
1020
  return result;
1019
1021
  }, "lintAllPackages");
1020
1022
 
@@ -1079,7 +1081,7 @@ var filename = ".gitignore";
1079
1081
  var gitignoreGen = /* @__PURE__ */ __name((pkg) => generateIgnoreFiles(filename, pkg), "gitignoreGen");
1080
1082
 
1081
1083
  // src/actions/gitlint.ts
1082
- import chalk16 from "chalk";
1084
+ import chalk15 from "chalk";
1083
1085
  import ParseGitConfig from "parse-git-config";
1084
1086
  var gitlint = /* @__PURE__ */ __name(() => {
1085
1087
  console.log(`
@@ -1090,7 +1092,7 @@ Gitlint Start [${process.cwd()}]
1090
1092
  const errors = 0;
1091
1093
  const gitConfig = ParseGitConfig.sync();
1092
1094
  const warn = /* @__PURE__ */ __name((message) => {
1093
- console.warn(chalk16.yellow(`Warning: ${message}`));
1095
+ console.warn(chalk15.yellow(`Warning: ${message}`));
1094
1096
  warnings++;
1095
1097
  }, "warn");
1096
1098
  if (gitConfig.core.ignorecase) {
@@ -1110,13 +1112,13 @@ Gitlint Start [${process.cwd()}]
1110
1112
  }
1111
1113
  const resultMessages = [];
1112
1114
  if (valid > 0) {
1113
- resultMessages.push(chalk16.green(`Passed: ${valid}`));
1115
+ resultMessages.push(chalk15.green(`Passed: ${valid}`));
1114
1116
  }
1115
1117
  if (warnings > 0) {
1116
- resultMessages.push(chalk16.yellow(`Warnings: ${warnings}`));
1118
+ resultMessages.push(chalk15.yellow(`Warnings: ${warnings}`));
1117
1119
  }
1118
1120
  if (errors > 0) {
1119
- resultMessages.push(chalk16.red(` Errors: ${errors}`));
1121
+ resultMessages.push(chalk15.red(` Errors: ${errors}`));
1120
1122
  }
1121
1123
  console.warn(`Gitlint Finish [ ${resultMessages.join(" | ")} ]
1122
1124
  `);
@@ -1125,7 +1127,7 @@ Gitlint Start [${process.cwd()}]
1125
1127
 
1126
1128
  // src/actions/gitlint-fix.ts
1127
1129
  import { execSync as execSync2 } from "node:child_process";
1128
- import chalk17 from "chalk";
1130
+ import chalk16 from "chalk";
1129
1131
  import ParseGitConfig2 from "parse-git-config";
1130
1132
  var gitlintFix = /* @__PURE__ */ __name(() => {
1131
1133
  console.log(`
@@ -1136,19 +1138,19 @@ Gitlint Fix Start [${process.cwd()}]
1136
1138
  execSync2("git config core.ignorecase false", {
1137
1139
  stdio: "inherit"
1138
1140
  });
1139
- console.warn(chalk17.yellow("\nGitlint Fix: Updated core.ignorecase to be false\n"));
1141
+ console.warn(chalk16.yellow("\nGitlint Fix: Updated core.ignorecase to be false\n"));
1140
1142
  }
1141
1143
  if (gitConfig.core.autocrlf !== false) {
1142
1144
  execSync2("git config core.autocrlf false", {
1143
1145
  stdio: "inherit"
1144
1146
  });
1145
- console.warn(chalk17.yellow("\nGitlint Fix: Updated core.autocrlf to be false\n"));
1147
+ console.warn(chalk16.yellow("\nGitlint Fix: Updated core.autocrlf to be false\n"));
1146
1148
  }
1147
1149
  if (gitConfig.core.eol !== "lf") {
1148
1150
  execSync2("git config core.eol lf", {
1149
1151
  stdio: "inherit"
1150
1152
  });
1151
- console.warn(chalk17.yellow('\nGitlint Fix: Updated core.eol to be "lf"\n'));
1153
+ console.warn(chalk16.yellow('\nGitlint Fix: Updated core.eol to be "lf"\n'));
1152
1154
  }
1153
1155
  return 1;
1154
1156
  }, "gitlintFix");
@@ -1168,7 +1170,7 @@ var knip = /* @__PURE__ */ __name(() => {
1168
1170
  }, "knip");
1169
1171
 
1170
1172
  // src/actions/license.ts
1171
- import chalk18 from "chalk";
1173
+ import chalk17 from "chalk";
1172
1174
  import { init } from "license-checker";
1173
1175
  var license = /* @__PURE__ */ __name(async (pkg) => {
1174
1176
  const workspaces = yarnWorkspaces();
@@ -1193,7 +1195,7 @@ var license = /* @__PURE__ */ __name(async (pkg) => {
1193
1195
  "LGPL-3.0-or-later",
1194
1196
  "Python-2.0"
1195
1197
  ]);
1196
- console.log(chalk18.green("License Checker"));
1198
+ console.log(chalk17.green("License Checker"));
1197
1199
  return (await Promise.all(workspaceList.map(({ location, name }) => {
1198
1200
  return new Promise((resolve) => {
1199
1201
  init({
@@ -1201,12 +1203,12 @@ var license = /* @__PURE__ */ __name(async (pkg) => {
1201
1203
  start: location
1202
1204
  }, (error, packages) => {
1203
1205
  if (error) {
1204
- console.error(chalk18.red(`License Checker [${name}] Error`));
1205
- console.error(chalk18.gray(error));
1206
+ console.error(chalk17.red(`License Checker [${name}] Error`));
1207
+ console.error(chalk17.gray(error));
1206
1208
  console.log("\n");
1207
1209
  resolve(1);
1208
1210
  } else {
1209
- console.log(chalk18.green(`License Checker [${name}]`));
1211
+ console.log(chalk17.green(`License Checker [${name}]`));
1210
1212
  let count = 0;
1211
1213
  for (const [name2, info] of Object.entries(packages)) {
1212
1214
  const licenses = Array.isArray(info.licenses) ? info.licenses : [
@@ -1224,7 +1226,7 @@ var license = /* @__PURE__ */ __name(async (pkg) => {
1224
1226
  }
1225
1227
  if (!orLicenseFound) {
1226
1228
  count++;
1227
- console.warn(chalk18.yellow(`${name2}: Package License not allowed [${license2}]`));
1229
+ console.warn(chalk17.yellow(`${name2}: Package License not allowed [${license2}]`));
1228
1230
  }
1229
1231
  }
1230
1232
  }
@@ -1243,7 +1245,7 @@ var npmignoreGen = /* @__PURE__ */ __name((pkg) => generateIgnoreFiles(filename2
1243
1245
 
1244
1246
  // src/actions/package/clean-outputs.ts
1245
1247
  import path3 from "node:path";
1246
- import chalk19 from "chalk";
1248
+ import chalk18 from "chalk";
1247
1249
  var packageCleanOutputs = /* @__PURE__ */ __name(() => {
1248
1250
  const pkg = process.env.INIT_CWD ?? ".";
1249
1251
  const pkgName = process.env.npm_package_name;
@@ -1252,7 +1254,7 @@ var packageCleanOutputs = /* @__PURE__ */ __name(() => {
1252
1254
  path3.join(pkg, "build"),
1253
1255
  path3.join(pkg, "docs")
1254
1256
  ];
1255
- console.log(chalk19.green(`Cleaning Outputs [${pkgName}]`));
1257
+ console.log(chalk18.green(`Cleaning Outputs [${pkgName}]`));
1256
1258
  for (let folder of folders) {
1257
1259
  deleteGlob(folder);
1258
1260
  }
@@ -1261,11 +1263,11 @@ var packageCleanOutputs = /* @__PURE__ */ __name(() => {
1261
1263
 
1262
1264
  // src/actions/package/clean-typescript.ts
1263
1265
  import path4 from "node:path";
1264
- import chalk20 from "chalk";
1266
+ import chalk19 from "chalk";
1265
1267
  var packageCleanTypescript = /* @__PURE__ */ __name(() => {
1266
1268
  const pkg = process.env.INIT_CWD ?? ".";
1267
1269
  const pkgName = process.env.npm_package_name;
1268
- console.log(chalk20.green(`Cleaning Typescript [${pkgName}]`));
1270
+ console.log(chalk19.green(`Cleaning Typescript [${pkgName}]`));
1269
1271
  const files = [
1270
1272
  path4.join(pkg, "*.tsbuildinfo"),
1271
1273
  path4.join(pkg, ".tsconfig.*"),
@@ -1286,19 +1288,19 @@ var packageClean = /* @__PURE__ */ __name(async () => {
1286
1288
  }, "packageClean");
1287
1289
 
1288
1290
  // src/actions/package/compile/compile.ts
1289
- import chalk24 from "chalk";
1291
+ import chalk23 from "chalk";
1290
1292
 
1291
1293
  // src/actions/package/publint.ts
1292
1294
  import { promises as fs2 } from "node:fs";
1293
- import chalk21 from "chalk";
1295
+ import chalk20 from "chalk";
1294
1296
  import sortPackageJson from "sort-package-json";
1295
1297
  var packagePublint = /* @__PURE__ */ __name(async (params) => {
1296
1298
  const pkgDir = process.env.INIT_CWD;
1297
1299
  const sortedPkg = sortPackageJson(await fs2.readFile(`${pkgDir}/package.json`, "utf8"));
1298
1300
  await fs2.writeFile(`${pkgDir}/package.json`, sortedPkg);
1299
1301
  const pkg = JSON.parse(await fs2.readFile(`${pkgDir}/package.json`, "utf8"));
1300
- console.log(chalk21.green(`Publint: ${pkg.name}`));
1301
- console.log(chalk21.gray(pkgDir));
1302
+ console.log(chalk20.green(`Publint: ${pkg.name}`));
1303
+ console.log(chalk20.gray(pkgDir));
1302
1304
  const { publint: publint2 } = await import("publint");
1303
1305
  const { messages } = await publint2({
1304
1306
  level: "suggestion",
@@ -1313,21 +1315,21 @@ var packagePublint = /* @__PURE__ */ __name(async (params) => {
1313
1315
  for (const message of validMessages) {
1314
1316
  switch (message.type) {
1315
1317
  case "error": {
1316
- console.error(chalk21.red(`[${message.code}] ${formatMessage(message, pkg)}`));
1318
+ console.error(chalk20.red(`[${message.code}] ${formatMessage(message, pkg)}`));
1317
1319
  break;
1318
1320
  }
1319
1321
  case "warning": {
1320
- console.warn(chalk21.yellow(`[${message.code}] ${formatMessage(message, pkg)}`));
1322
+ console.warn(chalk20.yellow(`[${message.code}] ${formatMessage(message, pkg)}`));
1321
1323
  break;
1322
1324
  }
1323
1325
  default: {
1324
- console.log(chalk21.white(`[${message.code}] ${formatMessage(message, pkg)}`));
1326
+ console.log(chalk20.white(`[${message.code}] ${formatMessage(message, pkg)}`));
1325
1327
  break;
1326
1328
  }
1327
1329
  }
1328
1330
  }
1329
1331
  if (params?.verbose) {
1330
- console.log(chalk21.gray(`Publint [Finish]: ${pkgDir} [${validMessages.length}]`));
1332
+ console.log(chalk20.gray(`Publint [Finish]: ${pkgDir} [${validMessages.length}]`));
1331
1333
  }
1332
1334
  return validMessages.filter((message) => message.type === "error").length;
1333
1335
  }, "packagePublint");
@@ -1371,7 +1373,7 @@ var buildEntries = /* @__PURE__ */ __name((folder, entryMode = "single", exclude
1371
1373
 
1372
1374
  // src/actions/package/compile/packageCompileTscTypes.ts
1373
1375
  import { cwd } from "node:process";
1374
- import chalk22 from "chalk";
1376
+ import chalk21 from "chalk";
1375
1377
  import { createProgramFromConfig } from "tsc-prog";
1376
1378
  import { DiagnosticCategory, formatDiagnosticsWithColorAndContext, getPreEmitDiagnostics, sys as sys2 } from "typescript";
1377
1379
 
@@ -1428,7 +1430,7 @@ var packageCompileTscTypes = /* @__PURE__ */ __name((folder = "src", config2 = {
1428
1430
  ".spec."
1429
1431
  ];
1430
1432
  const files = buildEntries(folder, "all", verbose).filter((file) => validTsExt.find((ext) => file.endsWith(ext)) && !excludes.some((exclude) => file.includes(exclude)));
1431
- console.log(chalk22.green(`Compiling Types ${pkg}: ${files.length}`));
1433
+ console.log(chalk21.green(`Compiling Types ${pkg}: ${files.length}`));
1432
1434
  if (files.length > 0) {
1433
1435
  const program = createProgramFromConfig({
1434
1436
  basePath: pkg ?? cwd(),
@@ -1490,7 +1492,7 @@ __name(deepMergeObjects, "deepMergeObjects");
1490
1492
 
1491
1493
  // src/actions/package/compile/packageCompileTsc.ts
1492
1494
  import { cwd as cwd2 } from "node:process";
1493
- import chalk23 from "chalk";
1495
+ import chalk22 from "chalk";
1494
1496
  import { createProgramFromConfig as createProgramFromConfig2 } from "tsc-prog";
1495
1497
  import { DiagnosticCategory as DiagnosticCategory2, formatDiagnosticsWithColorAndContext as formatDiagnosticsWithColorAndContext2, getPreEmitDiagnostics as getPreEmitDiagnostics2, sys as sys3 } from "typescript";
1496
1498
  var packageCompileTsc = /* @__PURE__ */ __name((folder = "src", config2 = {}, compilerOptionsParam) => {
@@ -1525,7 +1527,7 @@ var packageCompileTsc = /* @__PURE__ */ __name((folder = "src", config2 = {}, co
1525
1527
  ".d.mts"
1526
1528
  ];
1527
1529
  const files = buildEntries(folder, "all", verbose).filter((file) => validTsExt.find((ext) => file.endsWith(ext)) && includes.find((include) => file.includes(include)));
1528
- console.log(chalk23.green(`Compiling Files ${pkg}: ${files.length}`));
1530
+ console.log(chalk22.green(`Compiling Files ${pkg}: ${files.length}`));
1529
1531
  if (files.length > 0) {
1530
1532
  const program = createProgramFromConfig2({
1531
1533
  basePath: pkg ?? cwd2(),
@@ -1685,7 +1687,7 @@ var packageCompileTsup = /* @__PURE__ */ __name(async (config2) => {
1685
1687
  // src/actions/package/compile/compile.ts
1686
1688
  var packageCompile = /* @__PURE__ */ __name(async (inConfig = {}) => {
1687
1689
  const pkg = process.env.INIT_CWD;
1688
- console.log(chalk24.green(`Compiling ${pkg}`));
1690
+ console.log(chalk23.green(`Compiling ${pkg}`));
1689
1691
  const config2 = await loadConfig(inConfig);
1690
1692
  const publint2 = config2.publint;
1691
1693
  const tsupResults = await packageCompileTsup(config2);
@@ -1697,7 +1699,7 @@ var packageCompile = /* @__PURE__ */ __name(async (inConfig = {}) => {
1697
1699
 
1698
1700
  // src/actions/package/copy-assets.ts
1699
1701
  import path5 from "node:path/posix";
1700
- import chalk25 from "chalk";
1702
+ import chalk24 from "chalk";
1701
1703
  import cpy2 from "cpy";
1702
1704
  var copyTargetAssets2 = /* @__PURE__ */ __name(async (target, name, location) => {
1703
1705
  try {
@@ -1716,7 +1718,7 @@ var copyTargetAssets2 = /* @__PURE__ */ __name(async (target, name, location) =>
1716
1718
  flat: false
1717
1719
  });
1718
1720
  if (values.length > 0) {
1719
- console.log(chalk25.green(`Copying Assets [${target.toUpperCase()}] - ${name} - ${location}`));
1721
+ console.log(chalk24.green(`Copying Assets [${target.toUpperCase()}] - ${name} - ${location}`));
1720
1722
  }
1721
1723
  for (const value of values) {
1722
1724
  console.log(`${value.split("/").pop()} => ./dist/${target}`);
@@ -1745,7 +1747,7 @@ var packageCopyAssets = /* @__PURE__ */ __name(async ({ target }) => {
1745
1747
  }, "packageCopyAssets");
1746
1748
 
1747
1749
  // src/actions/package/cycle.ts
1748
- import { cruise } from "dependency-cruiser";
1750
+ import { cruise as cruise2 } from "dependency-cruiser";
1749
1751
  var packageCycle = /* @__PURE__ */ __name(async ({ verbose = false }) => {
1750
1752
  const pkg = process.env.INIT_CWD;
1751
1753
  const pkgName = process.env.npm_package_name;
@@ -1774,7 +1776,7 @@ var packageCycle = /* @__PURE__ */ __name(async ({ verbose = false }) => {
1774
1776
  };
1775
1777
  const target = `${pkg}/src`;
1776
1778
  console.log(`Checking for circular dependencies in ${target}...`);
1777
- const result = await cruise([
1779
+ const result = await cruise2([
1778
1780
  target
1779
1781
  ], cruiseOptions);
1780
1782
  if (result.output) {
@@ -1791,7 +1793,7 @@ var packageCycle = /* @__PURE__ */ __name(async ({ verbose = false }) => {
1791
1793
  // src/actions/package/gen-docs.ts
1792
1794
  import { existsSync as existsSync4 } from "node:fs";
1793
1795
  import path6 from "node:path";
1794
- import chalk26 from "chalk";
1796
+ import chalk25 from "chalk";
1795
1797
  import { Application, ArgumentsReader, TSConfigReader, TypeDocReader } from "typedoc";
1796
1798
  var ExitCodes = {
1797
1799
  CompileError: 3,
@@ -1893,7 +1895,7 @@ var runTypeDoc = /* @__PURE__ */ __name(async (app) => {
1893
1895
  return ExitCodes.OutputError;
1894
1896
  }
1895
1897
  }
1896
- console.log(chalk26.green(`${pkgName} - Ok`));
1898
+ console.log(chalk25.green(`${pkgName} - Ok`));
1897
1899
  return ExitCodes.Ok;
1898
1900
  }, "runTypeDoc");
1899
1901
 
@@ -1902,7 +1904,7 @@ import { readdirSync } from "node:fs";
1902
1904
  import path7 from "node:path";
1903
1905
  import { cwd as cwd3 } from "node:process";
1904
1906
  import { pathToFileURL } from "node:url";
1905
- import chalk27 from "chalk";
1907
+ import chalk26 from "chalk";
1906
1908
  import { ESLint } from "eslint";
1907
1909
  import { findUp } from "find-up";
1908
1910
  import picomatch from "picomatch";
@@ -1919,10 +1921,10 @@ var dumpMessages = /* @__PURE__ */ __name((lintResults) => {
1919
1921
  ];
1920
1922
  for (const lintResult of lintResults) {
1921
1923
  if (lintResult.messages.length > 0) {
1922
- console.log(chalk27.gray(`
1924
+ console.log(chalk26.gray(`
1923
1925
  ${lintResult.filePath}`));
1924
1926
  for (const message of lintResult.messages) {
1925
- console.log(chalk27.gray(` ${message.line}:${message.column}`), chalk27[colors[message.severity]](` ${severity[message.severity]}`), chalk27.white(` ${message.message}`), chalk27.gray(` ${message.ruleId}`));
1927
+ console.log(chalk26.gray(` ${message.line}:${message.column}`), chalk26[colors[message.severity]](` ${severity[message.severity]}`), chalk26.white(` ${message.message}`), chalk26.gray(` ${message.ruleId}`));
1926
1928
  }
1927
1929
  }
1928
1930
  }
@@ -1977,7 +1979,7 @@ var packageLint = /* @__PURE__ */ __name(async (fix2 = false, verbose = false, c
1977
1979
  });
1978
1980
  const files = getFiles(cwd3(), ignoreFolders);
1979
1981
  if (verbose) {
1980
- console.log(chalk27.green(`Linting ${pkg} [files = ${files.length}]`));
1982
+ console.log(chalk26.green(`Linting ${pkg} [files = ${files.length}]`));
1981
1983
  }
1982
1984
  const lintResults = await engine.lintFiles(files);
1983
1985
  dumpMessages(lintResults);
@@ -1987,7 +1989,7 @@ var packageLint = /* @__PURE__ */ __name(async (fix2 = false, verbose = false, c
1987
1989
  const filesCountColor = files.length < 100 ? "green" : files.length < 1e3 ? "yellow" : "red";
1988
1990
  const lintTime = Date.now() - start;
1989
1991
  const lintTimeColor = lintTime < 1e3 ? "green" : lintTime < 3e3 ? "yellow" : "red";
1990
- console.log(chalk27.white(`Linted ${chalk27[filesCountColor](files.length)} files in ${chalk27[lintTimeColor](lintTime)}ms`));
1992
+ console.log(chalk26.white(`Linted ${chalk26[filesCountColor](files.length)} files in ${chalk26[lintTimeColor](lintTime)}ms`));
1991
1993
  return lintResults.reduce((prev, lintResult) => prev + lintResult.errorCount, 0);
1992
1994
  }, "packageLint");
1993
1995
 
@@ -2054,7 +2056,7 @@ var rebuild = /* @__PURE__ */ __name(({ target }) => {
2054
2056
  }, "rebuild");
2055
2057
 
2056
2058
  // src/actions/recompile.ts
2057
- import chalk28 from "chalk";
2059
+ import chalk27 from "chalk";
2058
2060
  var recompile = /* @__PURE__ */ __name(async ({ verbose, target, pkg, incremental }) => {
2059
2061
  return pkg ? await recompilePackage({
2060
2062
  pkg,
@@ -2109,7 +2111,7 @@ var recompileAll = /* @__PURE__ */ __name(async ({ jobs, verbose, target, increm
2109
2111
  `${jobs}`
2110
2112
  ] : [];
2111
2113
  if (jobs) {
2112
- console.log(chalk28.blue(`Jobs set to [${jobs}]`));
2114
+ console.log(chalk27.blue(`Jobs set to [${jobs}]`));
2113
2115
  }
2114
2116
  const result = await runStepsAsync(`Recompile${incremental ? "-Incremental" : ""} [All]`, [
2115
2117
  [
@@ -2139,7 +2141,7 @@ var recompileAll = /* @__PURE__ */ __name(async ({ jobs, verbose, target, increm
2139
2141
  ]
2140
2142
  ]
2141
2143
  ]);
2142
- console.log(`${chalk28.gray("Recompiled in")} [${chalk28.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk28.gray("seconds")}`);
2144
+ console.log(`${chalk27.gray("Recompiled in")} [${chalk27.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk27.gray("seconds")}`);
2143
2145
  return result;
2144
2146
  }, "recompileAll");
2145
2147
 
@@ -2173,9 +2175,9 @@ var reinstall = /* @__PURE__ */ __name(() => {
2173
2175
  }, "reinstall");
2174
2176
 
2175
2177
  // src/actions/relint.ts
2176
- import chalk29 from "chalk";
2178
+ import chalk28 from "chalk";
2177
2179
  var relintPackage = /* @__PURE__ */ __name(({ pkg }) => {
2178
- console.log(chalk29.gray(`${"Relint"} [All-Packages]`));
2180
+ console.log(chalk28.gray(`${"Relint"} [All-Packages]`));
2179
2181
  const start = Date.now();
2180
2182
  const result = runSteps("Relint [All-Packages]", [
2181
2183
  [
@@ -2188,7 +2190,7 @@ var relintPackage = /* @__PURE__ */ __name(({ pkg }) => {
2188
2190
  ]
2189
2191
  ]
2190
2192
  ]);
2191
- console.log(chalk29.gray(`${"Relinted in"} [${chalk29.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk29.gray("seconds")}`));
2193
+ console.log(chalk28.gray(`${"Relinted in"} [${chalk28.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk28.gray("seconds")}`));
2192
2194
  return result;
2193
2195
  }, "relintPackage");
2194
2196
  var relint = /* @__PURE__ */ __name(({ pkg, verbose, incremental } = {}) => {
@@ -2200,7 +2202,7 @@ var relint = /* @__PURE__ */ __name(({ pkg, verbose, incremental } = {}) => {
2200
2202
  });
2201
2203
  }, "relint");
2202
2204
  var relintAllPackages = /* @__PURE__ */ __name(({ verbose = true, incremental } = {}) => {
2203
- console.log(chalk29.gray(`${"Relint"} [All-Packages]`));
2205
+ console.log(chalk28.gray(`${"Relint"} [All-Packages]`));
2204
2206
  const start = Date.now();
2205
2207
  const verboseOptions = verbose ? [
2206
2208
  "--verbose"
@@ -2227,7 +2229,7 @@ var relintAllPackages = /* @__PURE__ */ __name(({ verbose = true, incremental }
2227
2229
  ]
2228
2230
  ]
2229
2231
  ]);
2230
- console.log(chalk29.gray(`Relinted in [${chalk29.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk29.gray("seconds")}`));
2232
+ console.log(chalk28.gray(`Relinted in [${chalk28.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk28.gray("seconds")}`));
2231
2233
  return result;
2232
2234
  }, "relintAllPackages");
2233
2235
 
@@ -2267,7 +2269,7 @@ var sonar = /* @__PURE__ */ __name(() => {
2267
2269
  }, "sonar");
2268
2270
 
2269
2271
  // src/actions/statics.ts
2270
- import chalk30 from "chalk";
2272
+ import chalk29 from "chalk";
2271
2273
  var DefaultDependencies = [
2272
2274
  "axios",
2273
2275
  "@xylabs/pixel",
@@ -2278,7 +2280,7 @@ var DefaultDependencies = [
2278
2280
  "@mui/system"
2279
2281
  ];
2280
2282
  var statics = /* @__PURE__ */ __name(() => {
2281
- console.log(chalk30.green("Check Required Static Dependencies"));
2283
+ console.log(chalk29.green("Check Required Static Dependencies"));
2282
2284
  const statics2 = parsedPackageJSON()?.xy?.deps?.statics;
2283
2285
  return detectDuplicateDependencies(statics2, DefaultDependencies);
2284
2286
  }, "statics");