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