@xylabs/ts-scripts-yarn3 6.5.3 → 6.5.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.
package/dist/xy/xy.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/xy/xy.ts
2
- import chalk27 from "chalk";
2
+ import chalk26 from "chalk";
3
3
 
4
4
  // src/actions/build.ts
5
5
  import chalk7 from "chalk";
@@ -656,7 +656,7 @@ var dead = () => {
656
656
  };
657
657
 
658
658
  // src/actions/deplint/deplint.ts
659
- import chalk17 from "chalk";
659
+ import chalk16 from "chalk";
660
660
 
661
661
  // src/actions/deplint/findFilesByGlob.ts
662
662
  import { globSync } from "glob";
@@ -732,7 +732,7 @@ function getImportsFromFile(filePath, importPaths, typeImportPaths) {
732
732
  const isTypeImport = ts.isImportDeclaration(node) ? node.importClause?.isTypeOnly ?? false : false;
733
733
  if (moduleSpecifier) {
734
734
  const trimmed = moduleSpecifier.split("'").at(1) ?? moduleSpecifier;
735
- if (isTypeImport && !isDeclarationFile) {
735
+ if (isTypeImport || isDeclarationFile) {
736
736
  typeImports.push(trimmed);
737
737
  } else {
738
738
  imports.push(trimmed);
@@ -775,16 +775,16 @@ function getExternalImportsFromFiles({
775
775
  const prodImportPaths = {};
776
776
  const prodTypeImportPaths = {};
777
777
  const prodImportPairs = prodSourceFiles.map((path5) => getImportsFromFile(path5, prodImportPaths, prodTypeImportPaths));
778
- const prodTypeImportPairs = prodDistFiles.map((path5) => getImportsFromFile(path5, prodImportPaths, prodTypeImportPaths));
778
+ const prodDistImportPairs = prodDistFiles.map((path5) => getImportsFromFile(path5, prodImportPaths, prodTypeImportPaths));
779
779
  const prodImports = prodImportPairs.flatMap((pair) => pair[0]);
780
- const prodTypeImports = prodTypeImportPairs.flatMap((pair) => pair[1]);
780
+ const prodDistImports = prodDistImportPairs.flatMap((pair) => pair[1]);
781
781
  const devImportPaths = {};
782
782
  const devTypeImportPaths = {};
783
783
  const devImportPairs = devSourceFiles.map((path5) => getImportsFromFile(path5, devImportPaths, devTypeImportPaths));
784
784
  const devImports = devImportPairs.flatMap((pair) => pair[0]);
785
785
  const devTypeImports = devImportPairs.flatMap((pair) => pair[1]);
786
786
  const externalProdImports = removeInternalImports(prodImports);
787
- const externalProdTypeImports = removeInternalImports(prodTypeImports);
787
+ const externalProdTypeImports = removeInternalImports(prodDistImports);
788
788
  const externalDevImports = removeInternalImports(devImports);
789
789
  return {
790
790
  prodImports,
@@ -794,30 +794,14 @@ function getExternalImportsFromFiles({
794
794
  devImportPaths,
795
795
  externalProdImports,
796
796
  externalDevImports,
797
- prodTypeImports,
797
+ prodDistImports,
798
798
  devTypeImports,
799
799
  externalProdTypeImports
800
800
  };
801
801
  }
802
802
 
803
- // src/actions/deplint/checkPackage/getTypesInDependencies.ts
804
- import chalk12 from "chalk";
805
- function getTypesInDependencies({ name, location }, { dependencies }, {}) {
806
- let typesInDependencies = 0;
807
- for (const dep of dependencies) {
808
- if (dep.startsWith("@types/")) {
809
- typesInDependencies++;
810
- console.log(`[${chalk12.blue(name)}] @types in dependencies in package.json: ${chalk12.red(dep)}`);
811
- console.log(` ${location}/package.json
812
- `);
813
- console.log("");
814
- }
815
- }
816
- return typesInDependencies;
817
- }
818
-
819
803
  // src/actions/deplint/checkPackage/getUnlistedDependencies.ts
820
- import chalk13 from "chalk";
804
+ import chalk12 from "chalk";
821
805
  function getUnlistedDependencies({ name }, { dependencies, peerDependencies }, {
822
806
  externalProdTypeImports,
823
807
  prodTypeImportPaths,
@@ -828,7 +812,7 @@ function getUnlistedDependencies({ name }, { dependencies, peerDependencies }, {
828
812
  for (const imp of externalProdTypeImports) {
829
813
  if (!dependencies.includes(imp) && !peerDependencies.includes(imp) && !dependencies.includes(`@types/${imp}`) && !peerDependencies.includes(`@types/${imp}`)) {
830
814
  unlistedDependencies++;
831
- console.log(`[${chalk13.blue(name)}] Missing dependency in package.json: ${chalk13.red(imp)}`);
815
+ console.log(`[${chalk12.blue(name)}] Missing dependency in package.json: ${chalk12.red(imp)}`);
832
816
  console.log(` ${prodTypeImportPaths[imp].join("\n")}`);
833
817
  console.log("");
834
818
  }
@@ -836,7 +820,7 @@ function getUnlistedDependencies({ name }, { dependencies, peerDependencies }, {
836
820
  for (const imp of externalProdImports) {
837
821
  if (!dependencies.includes(imp) && !peerDependencies.includes(imp)) {
838
822
  unlistedDependencies++;
839
- console.log(`[${chalk13.blue(name)}] Missing dependency in package.json: ${chalk13.red(imp)}`);
823
+ console.log(`[${chalk12.blue(name)}] Missing dependency in package.json: ${chalk12.red(imp)}`);
840
824
  console.log(` ${prodImportPaths[imp].join("\n")}`);
841
825
  console.log("");
842
826
  }
@@ -845,7 +829,7 @@ function getUnlistedDependencies({ name }, { dependencies, peerDependencies }, {
845
829
  }
846
830
 
847
831
  // src/actions/deplint/checkPackage/getUnlistedDevDependencies.ts
848
- import chalk14 from "chalk";
832
+ import chalk13 from "chalk";
849
833
  function getUnlistedDevDependencies({ name }, {
850
834
  devDependencies,
851
835
  dependencies,
@@ -855,7 +839,7 @@ function getUnlistedDevDependencies({ name }, {
855
839
  for (const imp of externalDevImports) {
856
840
  if (!devDependencies.includes(imp) && !dependencies.includes(imp) && !peerDependencies.includes(imp)) {
857
841
  unlistedDevDependencies++;
858
- console.log(`[${chalk14.blue(name)}] Missing devDependency in package.json: ${chalk14.red(imp)}`);
842
+ console.log(`[${chalk13.blue(name)}] Missing devDependency in package.json: ${chalk13.red(imp)}`);
859
843
  console.log(` Found in: ${devImportPaths[imp].join(", ")}`);
860
844
  }
861
845
  }
@@ -863,7 +847,7 @@ function getUnlistedDevDependencies({ name }, {
863
847
  }
864
848
 
865
849
  // src/actions/deplint/checkPackage/getUnusedDependencies.ts
866
- import chalk15 from "chalk";
850
+ import chalk14 from "chalk";
867
851
  function getUnusedDependencies({ name, location }, { dependencies }, {
868
852
  externalProdImports,
869
853
  externalProdTypeImports
@@ -872,7 +856,7 @@ function getUnusedDependencies({ name, location }, { dependencies }, {
872
856
  for (const dep of dependencies) {
873
857
  if (!externalProdImports.includes(dep) && !externalProdTypeImports.includes(dep)) {
874
858
  unusedDependencies++;
875
- console.log(`[${chalk15.blue(name)}] Unused dependency in package.json: ${chalk15.red(dep)}`);
859
+ console.log(`[${chalk14.blue(name)}] Unused dependency in package.json: ${chalk14.red(dep)}`);
876
860
  console.log(` ${location}/package.json
877
861
  `);
878
862
  console.log("");
@@ -882,13 +866,13 @@ function getUnusedDependencies({ name, location }, { dependencies }, {
882
866
  }
883
867
 
884
868
  // src/actions/deplint/checkPackage/getUnusedPeerDependencies.ts
885
- import chalk16 from "chalk";
869
+ import chalk15 from "chalk";
886
870
  function getUnusedPeerDependencies({ name, location }, { peerDependencies }, { externalProdImports, externalProdTypeImports }) {
887
871
  let unusedDependencies = 0;
888
872
  for (const dep of peerDependencies) {
889
873
  if (!externalProdImports.includes(dep) && !externalProdTypeImports.includes(dep)) {
890
874
  unusedDependencies++;
891
- console.log(`[${chalk16.blue(name)}] Unused peerDependency in package.json: ${chalk16.red(dep)}`);
875
+ console.log(`[${chalk15.blue(name)}] Unused peerDependency in package.json: ${chalk15.red(dep)}`);
892
876
  console.log(` ${location}/package.json
893
877
  `);
894
878
  console.log("");
@@ -912,7 +896,7 @@ function checkPackage({
912
896
  } = findFiles(location);
913
897
  const checkDeps = deps || !(deps || devDeps || peerDeps);
914
898
  const checkDevDeps = devDeps || !(deps || devDeps || peerDeps);
915
- const checkPeerDeps = peerDeps || !(deps || devDeps || peerDeps);
899
+ const checkPeerDeps = peerDeps;
916
900
  const sourceParams = getExternalImportsFromFiles({
917
901
  prodSourceFiles,
918
902
  devSourceFiles,
@@ -921,7 +905,7 @@ function checkPackage({
921
905
  const packageParams = getDependenciesFromPackageJson(`${location}/package.json`);
922
906
  const unlistedDependencies = checkDeps ? getUnlistedDependencies({ name, location }, packageParams, sourceParams) : 0;
923
907
  const unusedDependencies = checkDeps ? getUnusedDependencies({ name, location }, packageParams, sourceParams) : 0;
924
- const typesInDependencies = checkDeps ? getTypesInDependencies({ name, location }, packageParams, sourceParams) : 0;
908
+ const typesInDependencies = 0;
925
909
  const unlistedDevDependencies = checkDevDeps ? getUnlistedDevDependencies({ name, location }, packageParams, sourceParams) : 0;
926
910
  const unusedPeerDependencies = checkPeerDeps ? getUnusedPeerDependencies({ name, location }, packageParams, sourceParams) : 0;
927
911
  const totalErrors = unlistedDependencies + unlistedDevDependencies + unusedDependencies + typesInDependencies + unusedPeerDependencies;
@@ -958,9 +942,9 @@ var deplint = ({
958
942
  });
959
943
  }
960
944
  if (totalErrors > 0) {
961
- console.log(`Deplint: Found ${chalk17.red(totalErrors)} dependency problems. ${chalk17.red("\u2716")}`);
945
+ console.log(`Deplint: Found ${chalk16.red(totalErrors)} dependency problems. ${chalk16.red("\u2716")}`);
962
946
  } else {
963
- console.log(`Deplint: Found no dependency problems. ${chalk17.green("\u2714")}`);
947
+ console.log(`Deplint: Found no dependency problems. ${chalk16.green("\u2714")}`);
964
948
  }
965
949
  }
966
950
  return 0;
@@ -1067,18 +1051,18 @@ var deployNext = () => {
1067
1051
  };
1068
1052
 
1069
1053
  // src/actions/dupdeps.ts
1070
- import chalk18 from "chalk";
1054
+ import chalk17 from "chalk";
1071
1055
  var dupdeps = () => {
1072
- console.log(chalk18.green("Checking all Dependencies for Duplicates"));
1056
+ console.log(chalk17.green("Checking all Dependencies for Duplicates"));
1073
1057
  const allDependencies = parsedPackageJSON()?.dependencies;
1074
1058
  const dependencies = Object.entries(allDependencies).map(([k]) => k);
1075
1059
  return detectDuplicateDependencies(dependencies);
1076
1060
  };
1077
1061
 
1078
1062
  // src/actions/lint.ts
1079
- import chalk19 from "chalk";
1063
+ import chalk18 from "chalk";
1080
1064
  var lintPackage = ({ pkg, fix: fix2 }) => {
1081
- console.log(chalk19.gray(`${fix2 ? "Fix" : "Lint"} [${pkg}]`));
1065
+ console.log(chalk18.gray(`${fix2 ? "Fix" : "Lint"} [${pkg}]`));
1082
1066
  const start = Date.now();
1083
1067
  const result = runSteps(`${fix2 ? "Fix" : "Lint"} [${pkg}]`, [
1084
1068
  ["yarn", [
@@ -1088,7 +1072,7 @@ var lintPackage = ({ pkg, fix: fix2 }) => {
1088
1072
  fix2 ? "package-fix" : "package-lint"
1089
1073
  ]]
1090
1074
  ]);
1091
- console.log(chalk19.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk19.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk19.gray("seconds")}`));
1075
+ console.log(chalk18.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk18.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk18.gray("seconds")}`));
1092
1076
  return result;
1093
1077
  };
1094
1078
  var lint = ({
@@ -1104,13 +1088,13 @@ var lint = ({
1104
1088
  });
1105
1089
  };
1106
1090
  var lintAllPackages = ({ fix: fix2 = false } = {}) => {
1107
- console.log(chalk19.gray(`${fix2 ? "Fix" : "Lint"} [All-Packages]`));
1091
+ console.log(chalk18.gray(`${fix2 ? "Fix" : "Lint"} [All-Packages]`));
1108
1092
  const start = Date.now();
1109
1093
  const fixOptions = fix2 ? ["--fix"] : [];
1110
1094
  const result = runSteps(`${fix2 ? "Fix" : "Lint"} [All-Packages]`, [
1111
1095
  ["yarn", ["eslint", ...fixOptions]]
1112
1096
  ]);
1113
- console.log(chalk19.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk19.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk19.gray("seconds")}`));
1097
+ console.log(chalk18.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk18.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk18.gray("seconds")}`));
1114
1098
  return result;
1115
1099
  };
1116
1100
 
@@ -1138,7 +1122,7 @@ var filename = ".gitignore";
1138
1122
  var gitignoreGen = (pkg) => generateIgnoreFiles(filename, pkg);
1139
1123
 
1140
1124
  // src/actions/gitlint.ts
1141
- import chalk20 from "chalk";
1125
+ import chalk19 from "chalk";
1142
1126
  import ParseGitConfig from "parse-git-config";
1143
1127
  var gitlint = () => {
1144
1128
  console.log(`
@@ -1149,7 +1133,7 @@ Gitlint Start [${process.cwd()}]
1149
1133
  const errors = 0;
1150
1134
  const gitConfig = ParseGitConfig.sync();
1151
1135
  const warn = (message) => {
1152
- console.warn(chalk20.yellow(`Warning: ${message}`));
1136
+ console.warn(chalk19.yellow(`Warning: ${message}`));
1153
1137
  warnings++;
1154
1138
  };
1155
1139
  if (gitConfig.core.ignorecase) {
@@ -1169,13 +1153,13 @@ Gitlint Start [${process.cwd()}]
1169
1153
  }
1170
1154
  const resultMessages = [];
1171
1155
  if (valid > 0) {
1172
- resultMessages.push(chalk20.green(`Passed: ${valid}`));
1156
+ resultMessages.push(chalk19.green(`Passed: ${valid}`));
1173
1157
  }
1174
1158
  if (warnings > 0) {
1175
- resultMessages.push(chalk20.yellow(`Warnings: ${warnings}`));
1159
+ resultMessages.push(chalk19.yellow(`Warnings: ${warnings}`));
1176
1160
  }
1177
1161
  if (errors > 0) {
1178
- resultMessages.push(chalk20.red(` Errors: ${errors}`));
1162
+ resultMessages.push(chalk19.red(` Errors: ${errors}`));
1179
1163
  }
1180
1164
  console.warn(`Gitlint Finish [ ${resultMessages.join(" | ")} ]
1181
1165
  `);
@@ -1184,7 +1168,7 @@ Gitlint Start [${process.cwd()}]
1184
1168
 
1185
1169
  // src/actions/gitlint-fix.ts
1186
1170
  import { execSync as execSync2 } from "node:child_process";
1187
- import chalk21 from "chalk";
1171
+ import chalk20 from "chalk";
1188
1172
  import ParseGitConfig2 from "parse-git-config";
1189
1173
  var gitlintFix = () => {
1190
1174
  console.log(`
@@ -1193,15 +1177,15 @@ Gitlint Fix Start [${process.cwd()}]
1193
1177
  const gitConfig = ParseGitConfig2.sync();
1194
1178
  if (gitConfig.core.ignorecase) {
1195
1179
  execSync2("git config core.ignorecase false", { stdio: "inherit" });
1196
- console.warn(chalk21.yellow("\nGitlint Fix: Updated core.ignorecase to be false\n"));
1180
+ console.warn(chalk20.yellow("\nGitlint Fix: Updated core.ignorecase to be false\n"));
1197
1181
  }
1198
1182
  if (gitConfig.core.autocrlf !== false) {
1199
1183
  execSync2("git config core.autocrlf false", { stdio: "inherit" });
1200
- console.warn(chalk21.yellow("\nGitlint Fix: Updated core.autocrlf to be false\n"));
1184
+ console.warn(chalk20.yellow("\nGitlint Fix: Updated core.autocrlf to be false\n"));
1201
1185
  }
1202
1186
  if (gitConfig.core.eol !== "lf") {
1203
1187
  execSync2("git config core.eol lf", { stdio: "inherit" });
1204
- console.warn(chalk21.yellow('\nGitlint Fix: Updated core.eol to be "lf"\n'));
1188
+ console.warn(chalk20.yellow('\nGitlint Fix: Updated core.eol to be "lf"\n'));
1205
1189
  }
1206
1190
  return 1;
1207
1191
  };
@@ -1212,7 +1196,7 @@ var knip = () => {
1212
1196
  };
1213
1197
 
1214
1198
  // src/actions/license.ts
1215
- import chalk22 from "chalk";
1199
+ import chalk21 from "chalk";
1216
1200
  import { init } from "license-checker";
1217
1201
  var license = async (pkg) => {
1218
1202
  const workspaces = yarnWorkspaces();
@@ -1237,18 +1221,18 @@ var license = async (pkg) => {
1237
1221
  "LGPL-3.0-or-later",
1238
1222
  "Python-2.0"
1239
1223
  ]);
1240
- console.log(chalk22.green("License Checker"));
1224
+ console.log(chalk21.green("License Checker"));
1241
1225
  return (await Promise.all(
1242
1226
  workspaceList.map(({ location, name }) => {
1243
1227
  return new Promise((resolve) => {
1244
1228
  init({ production: true, start: location }, (error, packages) => {
1245
1229
  if (error) {
1246
- console.error(chalk22.red(`License Checker [${name}] Error`));
1247
- console.error(chalk22.gray(error));
1230
+ console.error(chalk21.red(`License Checker [${name}] Error`));
1231
+ console.error(chalk21.gray(error));
1248
1232
  console.log("\n");
1249
1233
  resolve(1);
1250
1234
  } else {
1251
- console.log(chalk22.green(`License Checker [${name}]`));
1235
+ console.log(chalk21.green(`License Checker [${name}]`));
1252
1236
  let count = 0;
1253
1237
  for (const [name2, info] of Object.entries(packages)) {
1254
1238
  const licenses = Array.isArray(info.licenses) ? info.licenses : [info.licenses];
@@ -1264,7 +1248,7 @@ var license = async (pkg) => {
1264
1248
  }
1265
1249
  if (!orLicenseFound) {
1266
1250
  count++;
1267
- console.warn(chalk22.yellow(`${name2}: Package License not allowed [${license2}]`));
1251
+ console.warn(chalk21.yellow(`${name2}: Package License not allowed [${license2}]`));
1268
1252
  }
1269
1253
  }
1270
1254
  }
@@ -1303,7 +1287,7 @@ var rebuild = ({ target }) => {
1303
1287
  };
1304
1288
 
1305
1289
  // src/actions/recompile.ts
1306
- import chalk23 from "chalk";
1290
+ import chalk22 from "chalk";
1307
1291
  var recompile = async ({
1308
1292
  verbose,
1309
1293
  target,
@@ -1339,7 +1323,7 @@ var recompileAll = async ({
1339
1323
  const incrementalOptions = incremental ? ["--since", "-Apt", "--topological-dev"] : ["--parallel", "-Apt", "--topological-dev"];
1340
1324
  const jobsOptions = jobs ? ["-j", `${jobs}`] : [];
1341
1325
  if (jobs) {
1342
- console.log(chalk23.blue(`Jobs set to [${jobs}]`));
1326
+ console.log(chalk22.blue(`Jobs set to [${jobs}]`));
1343
1327
  }
1344
1328
  const result = await runStepsAsync(`Recompile${incremental ? "-Incremental" : ""} [All]`, [
1345
1329
  [
@@ -1370,7 +1354,7 @@ var recompileAll = async ({
1370
1354
  ]
1371
1355
  ]);
1372
1356
  console.log(
1373
- `${chalk23.gray("Recompiled in")} [${chalk23.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk23.gray("seconds")}`
1357
+ `${chalk22.gray("Recompiled in")} [${chalk22.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk22.gray("seconds")}`
1374
1358
  );
1375
1359
  return result;
1376
1360
  };
@@ -1401,9 +1385,9 @@ var reinstall = () => {
1401
1385
  };
1402
1386
 
1403
1387
  // src/actions/relint.ts
1404
- import chalk24 from "chalk";
1388
+ import chalk23 from "chalk";
1405
1389
  var relintPackage = ({ pkg }) => {
1406
- console.log(chalk24.gray(`${"Relint"} [All-Packages]`));
1390
+ console.log(chalk23.gray(`${"Relint"} [All-Packages]`));
1407
1391
  const start = Date.now();
1408
1392
  const result = runSteps("Relint [All-Packages]", [
1409
1393
  ["yarn", [
@@ -1413,7 +1397,7 @@ var relintPackage = ({ pkg }) => {
1413
1397
  "package-relint"
1414
1398
  ]]
1415
1399
  ]);
1416
- console.log(chalk24.gray(`${"Relinted in"} [${chalk24.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk24.gray("seconds")}`));
1400
+ console.log(chalk23.gray(`${"Relinted in"} [${chalk23.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk23.gray("seconds")}`));
1417
1401
  return result;
1418
1402
  };
1419
1403
  var relint = ({
@@ -1424,7 +1408,7 @@ var relint = ({
1424
1408
  return pkg ? relintPackage({ pkg }) : relintAllPackages({ verbose, incremental });
1425
1409
  };
1426
1410
  var relintAllPackages = ({ verbose = true, incremental } = {}) => {
1427
- console.log(chalk24.gray(`${"Relint"} [All-Packages]`));
1411
+ console.log(chalk23.gray(`${"Relint"} [All-Packages]`));
1428
1412
  const start = Date.now();
1429
1413
  const verboseOptions = verbose ? ["--verbose"] : ["--no-verbose"];
1430
1414
  const incrementalOptions = incremental ? ["--since", "-Ap"] : ["--parallel", "-Ap"];
@@ -1438,7 +1422,7 @@ var relintAllPackages = ({ verbose = true, incremental } = {}) => {
1438
1422
  "package-relint"
1439
1423
  ]]
1440
1424
  ]);
1441
- console.log(chalk24.gray(`Relinted in [${chalk24.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk24.gray("seconds")}`));
1425
+ console.log(chalk23.gray(`Relinted in [${chalk23.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk23.gray("seconds")}`));
1442
1426
  return result;
1443
1427
  };
1444
1428
 
@@ -1456,10 +1440,10 @@ var sonar = () => {
1456
1440
  };
1457
1441
 
1458
1442
  // src/actions/statics.ts
1459
- import chalk25 from "chalk";
1443
+ import chalk24 from "chalk";
1460
1444
  var DefaultDependencies = ["axios", "@xylabs/pixel", "react", "graphql", "react-router", "@mui/material", "@mui/system"];
1461
1445
  var statics = () => {
1462
- console.log(chalk25.green("Check Required Static Dependencies"));
1446
+ console.log(chalk24.green("Check Required Static Dependencies"));
1463
1447
  const statics2 = parsedPackageJSON()?.xy?.deps?.statics;
1464
1448
  return detectDuplicateDependencies(statics2, DefaultDependencies);
1465
1449
  };
@@ -1866,7 +1850,7 @@ var xyInstallCommands = (args) => {
1866
1850
  };
1867
1851
 
1868
1852
  // src/xy/xyLintCommands.ts
1869
- import chalk26 from "chalk";
1853
+ import chalk25 from "chalk";
1870
1854
  var xyLintCommands = (args) => {
1871
1855
  return args.command(
1872
1856
  "cycle [package]",
@@ -1878,7 +1862,7 @@ var xyLintCommands = (args) => {
1878
1862
  const start = Date.now();
1879
1863
  if (argv.verbose) console.log("Cycle");
1880
1864
  process.exitCode = await cycle({ pkg: argv.package });
1881
- console.log(chalk26.blue(`Finished in ${Date.now() - start}ms`));
1865
+ console.log(chalk25.blue(`Finished in ${Date.now() - start}ms`));
1882
1866
  }
1883
1867
  ).command(
1884
1868
  "lint [package]",
@@ -1900,7 +1884,7 @@ var xyLintCommands = (args) => {
1900
1884
  if (argv.verbose) console.log("Lint");
1901
1885
  const start = Date.now();
1902
1886
  process.exitCode = argv.fix ? fix({ pkg: argv.package, cache: argv.cache }) : lint({ pkg: argv.package, cache: argv.cache });
1903
- console.log(chalk26.blue(`Finished in ${Date.now() - start}ms`));
1887
+ console.log(chalk25.blue(`Finished in ${Date.now() - start}ms`));
1904
1888
  }
1905
1889
  ).command(
1906
1890
  "deplint [package]",
@@ -1932,7 +1916,7 @@ var xyLintCommands = (args) => {
1932
1916
  devDeps: !!argv.devDeps,
1933
1917
  peerDeps: !!argv.peerDeps
1934
1918
  });
1935
- console.log(chalk26.blue(`Finished in ${Date.now() - start}ms`));
1919
+ console.log(chalk25.blue(`Finished in ${Date.now() - start}ms`));
1936
1920
  }
1937
1921
  ).command(
1938
1922
  "fix [package]",
@@ -1944,7 +1928,7 @@ var xyLintCommands = (args) => {
1944
1928
  const start = Date.now();
1945
1929
  if (argv.verbose) console.log("Fix");
1946
1930
  process.exitCode = fix();
1947
- console.log(chalk26.blue(`Finished in ${Date.now() - start}ms`));
1931
+ console.log(chalk25.blue(`Finished in ${Date.now() - start}ms`));
1948
1932
  }
1949
1933
  ).command(
1950
1934
  "relint [package]",
@@ -1956,7 +1940,7 @@ var xyLintCommands = (args) => {
1956
1940
  if (argv.verbose) console.log("Relinting");
1957
1941
  const start = Date.now();
1958
1942
  process.exitCode = relint();
1959
- console.log(chalk26.blue(`Finished in ${Date.now() - start}ms`));
1943
+ console.log(chalk25.blue(`Finished in ${Date.now() - start}ms`));
1960
1944
  }
1961
1945
  ).command(
1962
1946
  "publint [package]",
@@ -1968,7 +1952,7 @@ var xyLintCommands = (args) => {
1968
1952
  if (argv.verbose) console.log("Publint");
1969
1953
  const start = Date.now();
1970
1954
  process.exitCode = await publint({ pkg: argv.package, verbose: !!argv.verbose });
1971
- console.log(chalk26.blue(`Finished in ${Date.now() - start}ms`));
1955
+ console.log(chalk25.blue(`Finished in ${Date.now() - start}ms`));
1972
1956
  }
1973
1957
  ).command(
1974
1958
  "knip",
@@ -1980,7 +1964,7 @@ var xyLintCommands = (args) => {
1980
1964
  if (argv.verbose) console.log("Knip");
1981
1965
  const start = Date.now();
1982
1966
  process.exitCode = knip();
1983
- console.log(chalk26.blue(`Knip finished in ${Date.now() - start}ms`));
1967
+ console.log(chalk25.blue(`Knip finished in ${Date.now() - start}ms`));
1984
1968
  }
1985
1969
  ).command(
1986
1970
  "sonar",
@@ -1992,7 +1976,7 @@ var xyLintCommands = (args) => {
1992
1976
  const start = Date.now();
1993
1977
  if (argv.verbose) console.log("Sonar Check");
1994
1978
  process.exitCode = sonar();
1995
- console.log(chalk26.blue(`Finished in ${Date.now() - start}ms`));
1979
+ console.log(chalk25.blue(`Finished in ${Date.now() - start}ms`));
1996
1980
  }
1997
1981
  );
1998
1982
  };
@@ -2028,8 +2012,8 @@ var xyParseOptions = () => {
2028
2012
  var xy = async () => {
2029
2013
  const options = xyParseOptions();
2030
2014
  return await xyBuildCommands(xyCommonCommands(xyInstallCommands(xyDeployCommands(xyLintCommands(options))))).demandCommand(1).command("*", "", () => {
2031
- console.error(chalk27.yellow(`Command not found [${chalk27.magenta(process.argv[2])}]`));
2032
- console.log(chalk27.gray("Try 'yarn xy --help' for list of commands"));
2015
+ console.error(chalk26.yellow(`Command not found [${chalk26.magenta(process.argv[2])}]`));
2016
+ console.log(chalk26.gray("Try 'yarn xy --help' for list of commands"));
2033
2017
  }).version().help().argv;
2034
2018
  };
2035
2019
  export {