@xylabs/ts-scripts-yarn3 6.3.2 → 6.3.4

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
@@ -3,7 +3,7 @@ var __defProp = Object.defineProperty;
3
3
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
4
4
 
5
5
  // src/xy/xy.ts
6
- import chalk22 from "chalk";
6
+ import chalk21 from "chalk";
7
7
 
8
8
  // src/actions/build.ts
9
9
  import chalk7 from "chalk";
@@ -456,17 +456,6 @@ var build = /* @__PURE__ */ __name(async ({ incremental, jobs, target, verbose,
456
456
  "tsup"
457
457
  ]
458
458
  ],
459
- [
460
- "yarn",
461
- [
462
- "xy",
463
- "cycle",
464
- ...pkgOptions,
465
- ...verboseOptions,
466
- ...jobsOptions,
467
- ...incrementalOptions
468
- ]
469
- ],
470
459
  [
471
460
  "yarn",
472
461
  [
@@ -771,15 +760,13 @@ var copyAssets = /* @__PURE__ */ __name(async ({ target, pkg }) => {
771
760
  }, "copyAssets");
772
761
 
773
762
  // src/actions/cycle.ts
774
- import chalk12 from "chalk";
775
- var cycle = /* @__PURE__ */ __name(({ verbose, pkg, incremental, jobs } = {}) => {
763
+ import { cruise } from "dependency-cruiser";
764
+ var cycle = /* @__PURE__ */ __name(async ({ verbose, pkg } = {}) => {
776
765
  return pkg ? cyclePackage({
777
766
  pkg,
778
767
  verbose
779
- }) : cycleAll({
780
- incremental,
781
- verbose,
782
- jobs
768
+ }) : await cycleAll({
769
+ verbose
783
770
  });
784
771
  }, "cycle");
785
772
  var cyclePackage = /* @__PURE__ */ __name(({ pkg, verbose }) => {
@@ -801,45 +788,45 @@ var cyclePackage = /* @__PURE__ */ __name(({ pkg, verbose }) => {
801
788
  ]
802
789
  ]);
803
790
  }, "cyclePackage");
804
- var cycleAll = /* @__PURE__ */ __name(({ jobs, verbose, incremental }) => {
805
- const start = Date.now();
806
- const verboseOptions = verbose ? [
807
- "--verbose"
808
- ] : [
809
- "--no-verbose"
810
- ];
811
- const incrementalOptions = incremental ? [
812
- "--since",
813
- "-Ap",
814
- "--topological-dev"
815
- ] : [
816
- "--parallel",
817
- "-Ap"
818
- ];
819
- const jobsOptions = jobs ? [
820
- "-j",
821
- `${jobs}`
822
- ] : [];
823
- if (jobs) {
824
- console.log(chalk12.blue(`Jobs set to [${jobs}]`));
825
- }
826
- const result = runSteps(`Cycle${incremental ? "-Incremental" : ""} [All]`, [
827
- [
828
- "yarn",
829
- [
830
- "workspaces",
831
- "foreach",
832
- ...incrementalOptions,
833
- ...jobsOptions,
834
- ...verboseOptions,
835
- "run",
836
- "package-cycle",
837
- ...verboseOptions
791
+ var cycleAll = /* @__PURE__ */ __name(async ({ verbose = false }) => {
792
+ const pkgName = process.env.npm_package_name;
793
+ const cruiseOptions = {
794
+ ruleSet: {
795
+ forbidden: [
796
+ {
797
+ name: "no-circular",
798
+ severity: "error",
799
+ comment: "This dependency creates a circular reference",
800
+ from: {},
801
+ to: {
802
+ circular: true
803
+ }
804
+ }
838
805
  ]
839
- ]
840
- ]);
841
- console.log(`${chalk12.gray("Cycles Checked in")} [${chalk12.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk12.gray("seconds")}`);
842
- return result;
806
+ },
807
+ exclude: "node_modules|packages/.*/packages",
808
+ validate: true,
809
+ doNotFollow: {
810
+ path: "node_modules|packages/.*/packages"
811
+ },
812
+ tsPreCompilationDeps: false,
813
+ combinedDependencies: true,
814
+ outputType: verbose ? "text" : "err"
815
+ };
816
+ const target = "**/src";
817
+ console.log(`Checking for circular dependencies in ${target}...`);
818
+ const result = await cruise([
819
+ target
820
+ ], cruiseOptions);
821
+ if (result.output) {
822
+ console.log(result.output);
823
+ }
824
+ if (result.exitCode === 0) {
825
+ console.log(`${pkgName} \u2705 No dependency violations`);
826
+ } else {
827
+ console.error(`${pkgName} \u274C Dependency violations found`);
828
+ }
829
+ return result.exitCode;
843
830
  }, "cycleAll");
844
831
 
845
832
  // src/actions/dead.ts
@@ -961,18 +948,18 @@ var deployNext = /* @__PURE__ */ __name(() => {
961
948
  }, "deployNext");
962
949
 
963
950
  // src/actions/dupdeps.ts
964
- import chalk13 from "chalk";
951
+ import chalk12 from "chalk";
965
952
  var dupdeps = /* @__PURE__ */ __name(() => {
966
- console.log(chalk13.green("Checking all Dependencies for Duplicates"));
953
+ console.log(chalk12.green("Checking all Dependencies for Duplicates"));
967
954
  const allDependencies = parsedPackageJSON()?.dependencies;
968
955
  const dependencies = Object.entries(allDependencies).map(([k]) => k);
969
956
  return detectDuplicateDependencies(dependencies);
970
957
  }, "dupdeps");
971
958
 
972
959
  // src/actions/lint.ts
973
- import chalk14 from "chalk";
960
+ import chalk13 from "chalk";
974
961
  var lintPackage = /* @__PURE__ */ __name(({ pkg, fix: fix2 }) => {
975
- console.log(chalk14.gray(`${fix2 ? "Fix" : "Lint"} [${pkg}]`));
962
+ console.log(chalk13.gray(`${fix2 ? "Fix" : "Lint"} [${pkg}]`));
976
963
  const start = Date.now();
977
964
  const result = runSteps(`${fix2 ? "Fix" : "Lint"} [${pkg}]`, [
978
965
  [
@@ -985,7 +972,7 @@ var lintPackage = /* @__PURE__ */ __name(({ pkg, fix: fix2 }) => {
985
972
  ]
986
973
  ]
987
974
  ]);
988
- console.log(chalk14.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk14.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk14.gray("seconds")}`));
975
+ console.log(chalk13.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk13.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk13.gray("seconds")}`));
989
976
  return result;
990
977
  }, "lintPackage");
991
978
  var lint = /* @__PURE__ */ __name(({ pkg, verbose, incremental, fix: fix2 } = {}) => {
@@ -999,7 +986,7 @@ var lint = /* @__PURE__ */ __name(({ pkg, verbose, incremental, fix: fix2 } = {}
999
986
  });
1000
987
  }, "lint");
1001
988
  var lintAllPackages = /* @__PURE__ */ __name(({ fix: fix2 = false } = {}) => {
1002
- console.log(chalk14.gray(`${fix2 ? "Fix" : "Lint"} [All-Packages]`));
989
+ console.log(chalk13.gray(`${fix2 ? "Fix" : "Lint"} [All-Packages]`));
1003
990
  const start = Date.now();
1004
991
  const result = runSteps(`${fix2 ? "Fix" : "Lint"} [All-Packages]`, [
1005
992
  [
@@ -1009,7 +996,7 @@ var lintAllPackages = /* @__PURE__ */ __name(({ fix: fix2 = false } = {}) => {
1009
996
  ]
1010
997
  ]
1011
998
  ]);
1012
- console.log(chalk14.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk14.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk14.gray("seconds")}`));
999
+ console.log(chalk13.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk13.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk13.gray("seconds")}`));
1013
1000
  return result;
1014
1001
  }, "lintAllPackages");
1015
1002
 
@@ -1074,7 +1061,7 @@ var filename = ".gitignore";
1074
1061
  var gitignoreGen = /* @__PURE__ */ __name((pkg) => generateIgnoreFiles(filename, pkg), "gitignoreGen");
1075
1062
 
1076
1063
  // src/actions/gitlint.ts
1077
- import chalk15 from "chalk";
1064
+ import chalk14 from "chalk";
1078
1065
  import ParseGitConfig from "parse-git-config";
1079
1066
  var gitlint = /* @__PURE__ */ __name(() => {
1080
1067
  console.log(`
@@ -1085,7 +1072,7 @@ Gitlint Start [${process.cwd()}]
1085
1072
  const errors = 0;
1086
1073
  const gitConfig = ParseGitConfig.sync();
1087
1074
  const warn = /* @__PURE__ */ __name((message) => {
1088
- console.warn(chalk15.yellow(`Warning: ${message}`));
1075
+ console.warn(chalk14.yellow(`Warning: ${message}`));
1089
1076
  warnings++;
1090
1077
  }, "warn");
1091
1078
  if (gitConfig.core.ignorecase) {
@@ -1105,13 +1092,13 @@ Gitlint Start [${process.cwd()}]
1105
1092
  }
1106
1093
  const resultMessages = [];
1107
1094
  if (valid > 0) {
1108
- resultMessages.push(chalk15.green(`Passed: ${valid}`));
1095
+ resultMessages.push(chalk14.green(`Passed: ${valid}`));
1109
1096
  }
1110
1097
  if (warnings > 0) {
1111
- resultMessages.push(chalk15.yellow(`Warnings: ${warnings}`));
1098
+ resultMessages.push(chalk14.yellow(`Warnings: ${warnings}`));
1112
1099
  }
1113
1100
  if (errors > 0) {
1114
- resultMessages.push(chalk15.red(` Errors: ${errors}`));
1101
+ resultMessages.push(chalk14.red(` Errors: ${errors}`));
1115
1102
  }
1116
1103
  console.warn(`Gitlint Finish [ ${resultMessages.join(" | ")} ]
1117
1104
  `);
@@ -1120,7 +1107,7 @@ Gitlint Start [${process.cwd()}]
1120
1107
 
1121
1108
  // src/actions/gitlint-fix.ts
1122
1109
  import { execSync as execSync2 } from "node:child_process";
1123
- import chalk16 from "chalk";
1110
+ import chalk15 from "chalk";
1124
1111
  import ParseGitConfig2 from "parse-git-config";
1125
1112
  var gitlintFix = /* @__PURE__ */ __name(() => {
1126
1113
  console.log(`
@@ -1131,19 +1118,19 @@ Gitlint Fix Start [${process.cwd()}]
1131
1118
  execSync2("git config core.ignorecase false", {
1132
1119
  stdio: "inherit"
1133
1120
  });
1134
- console.warn(chalk16.yellow("\nGitlint Fix: Updated core.ignorecase to be false\n"));
1121
+ console.warn(chalk15.yellow("\nGitlint Fix: Updated core.ignorecase to be false\n"));
1135
1122
  }
1136
1123
  if (gitConfig.core.autocrlf !== false) {
1137
1124
  execSync2("git config core.autocrlf false", {
1138
1125
  stdio: "inherit"
1139
1126
  });
1140
- console.warn(chalk16.yellow("\nGitlint Fix: Updated core.autocrlf to be false\n"));
1127
+ console.warn(chalk15.yellow("\nGitlint Fix: Updated core.autocrlf to be false\n"));
1141
1128
  }
1142
1129
  if (gitConfig.core.eol !== "lf") {
1143
1130
  execSync2("git config core.eol lf", {
1144
1131
  stdio: "inherit"
1145
1132
  });
1146
- console.warn(chalk16.yellow('\nGitlint Fix: Updated core.eol to be "lf"\n'));
1133
+ console.warn(chalk15.yellow('\nGitlint Fix: Updated core.eol to be "lf"\n'));
1147
1134
  }
1148
1135
  return 1;
1149
1136
  }, "gitlintFix");
@@ -1163,7 +1150,7 @@ var knip = /* @__PURE__ */ __name(() => {
1163
1150
  }, "knip");
1164
1151
 
1165
1152
  // src/actions/license.ts
1166
- import chalk17 from "chalk";
1153
+ import chalk16 from "chalk";
1167
1154
  import { init } from "license-checker";
1168
1155
  var license = /* @__PURE__ */ __name(async (pkg) => {
1169
1156
  const workspaces = yarnWorkspaces();
@@ -1188,7 +1175,7 @@ var license = /* @__PURE__ */ __name(async (pkg) => {
1188
1175
  "LGPL-3.0-or-later",
1189
1176
  "Python-2.0"
1190
1177
  ]);
1191
- console.log(chalk17.green("License Checker"));
1178
+ console.log(chalk16.green("License Checker"));
1192
1179
  return (await Promise.all(workspaceList.map(({ location, name }) => {
1193
1180
  return new Promise((resolve) => {
1194
1181
  init({
@@ -1196,12 +1183,12 @@ var license = /* @__PURE__ */ __name(async (pkg) => {
1196
1183
  start: location
1197
1184
  }, (error, packages) => {
1198
1185
  if (error) {
1199
- console.error(chalk17.red(`License Checker [${name}] Error`));
1200
- console.error(chalk17.gray(error));
1186
+ console.error(chalk16.red(`License Checker [${name}] Error`));
1187
+ console.error(chalk16.gray(error));
1201
1188
  console.log("\n");
1202
1189
  resolve(1);
1203
1190
  } else {
1204
- console.log(chalk17.green(`License Checker [${name}]`));
1191
+ console.log(chalk16.green(`License Checker [${name}]`));
1205
1192
  let count = 0;
1206
1193
  for (const [name2, info] of Object.entries(packages)) {
1207
1194
  const licenses = Array.isArray(info.licenses) ? info.licenses : [
@@ -1219,7 +1206,7 @@ var license = /* @__PURE__ */ __name(async (pkg) => {
1219
1206
  }
1220
1207
  if (!orLicenseFound) {
1221
1208
  count++;
1222
- console.warn(chalk17.yellow(`${name2}: Package License not allowed [${license2}]`));
1209
+ console.warn(chalk16.yellow(`${name2}: Package License not allowed [${license2}]`));
1223
1210
  }
1224
1211
  }
1225
1212
  }
@@ -1294,7 +1281,7 @@ var rebuild = /* @__PURE__ */ __name(({ target }) => {
1294
1281
  }, "rebuild");
1295
1282
 
1296
1283
  // src/actions/recompile.ts
1297
- import chalk18 from "chalk";
1284
+ import chalk17 from "chalk";
1298
1285
  var recompile = /* @__PURE__ */ __name(async ({ verbose, target, pkg, incremental }) => {
1299
1286
  return pkg ? await recompilePackage({
1300
1287
  pkg,
@@ -1349,7 +1336,7 @@ var recompileAll = /* @__PURE__ */ __name(async ({ jobs, verbose, target, increm
1349
1336
  `${jobs}`
1350
1337
  ] : [];
1351
1338
  if (jobs) {
1352
- console.log(chalk18.blue(`Jobs set to [${jobs}]`));
1339
+ console.log(chalk17.blue(`Jobs set to [${jobs}]`));
1353
1340
  }
1354
1341
  const result = await runStepsAsync(`Recompile${incremental ? "-Incremental" : ""} [All]`, [
1355
1342
  [
@@ -1379,7 +1366,7 @@ var recompileAll = /* @__PURE__ */ __name(async ({ jobs, verbose, target, increm
1379
1366
  ]
1380
1367
  ]
1381
1368
  ]);
1382
- console.log(`${chalk18.gray("Recompiled in")} [${chalk18.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk18.gray("seconds")}`);
1369
+ console.log(`${chalk17.gray("Recompiled in")} [${chalk17.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk17.gray("seconds")}`);
1383
1370
  return result;
1384
1371
  }, "recompileAll");
1385
1372
 
@@ -1413,9 +1400,9 @@ var reinstall = /* @__PURE__ */ __name(() => {
1413
1400
  }, "reinstall");
1414
1401
 
1415
1402
  // src/actions/relint.ts
1416
- import chalk19 from "chalk";
1403
+ import chalk18 from "chalk";
1417
1404
  var relintPackage = /* @__PURE__ */ __name(({ pkg }) => {
1418
- console.log(chalk19.gray(`${"Relint"} [All-Packages]`));
1405
+ console.log(chalk18.gray(`${"Relint"} [All-Packages]`));
1419
1406
  const start = Date.now();
1420
1407
  const result = runSteps("Relint [All-Packages]", [
1421
1408
  [
@@ -1428,7 +1415,7 @@ var relintPackage = /* @__PURE__ */ __name(({ pkg }) => {
1428
1415
  ]
1429
1416
  ]
1430
1417
  ]);
1431
- console.log(chalk19.gray(`${"Relinted in"} [${chalk19.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk19.gray("seconds")}`));
1418
+ console.log(chalk18.gray(`${"Relinted in"} [${chalk18.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk18.gray("seconds")}`));
1432
1419
  return result;
1433
1420
  }, "relintPackage");
1434
1421
  var relint = /* @__PURE__ */ __name(({ pkg, verbose, incremental } = {}) => {
@@ -1440,7 +1427,7 @@ var relint = /* @__PURE__ */ __name(({ pkg, verbose, incremental } = {}) => {
1440
1427
  });
1441
1428
  }, "relint");
1442
1429
  var relintAllPackages = /* @__PURE__ */ __name(({ verbose = true, incremental } = {}) => {
1443
- console.log(chalk19.gray(`${"Relint"} [All-Packages]`));
1430
+ console.log(chalk18.gray(`${"Relint"} [All-Packages]`));
1444
1431
  const start = Date.now();
1445
1432
  const verboseOptions = verbose ? [
1446
1433
  "--verbose"
@@ -1467,7 +1454,7 @@ var relintAllPackages = /* @__PURE__ */ __name(({ verbose = true, incremental }
1467
1454
  ]
1468
1455
  ]
1469
1456
  ]);
1470
- console.log(chalk19.gray(`Relinted in [${chalk19.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk19.gray("seconds")}`));
1457
+ console.log(chalk18.gray(`Relinted in [${chalk18.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk18.gray("seconds")}`));
1471
1458
  return result;
1472
1459
  }, "relintAllPackages");
1473
1460
 
@@ -1507,7 +1494,7 @@ var sonar = /* @__PURE__ */ __name(() => {
1507
1494
  }, "sonar");
1508
1495
 
1509
1496
  // src/actions/statics.ts
1510
- import chalk20 from "chalk";
1497
+ import chalk19 from "chalk";
1511
1498
  var DefaultDependencies = [
1512
1499
  "axios",
1513
1500
  "@xylabs/pixel",
@@ -1518,7 +1505,7 @@ var DefaultDependencies = [
1518
1505
  "@mui/system"
1519
1506
  ];
1520
1507
  var statics = /* @__PURE__ */ __name(() => {
1521
- console.log(chalk20.green("Check Required Static Dependencies"));
1508
+ console.log(chalk19.green("Check Required Static Dependencies"));
1522
1509
  const statics2 = parsedPackageJSON()?.xy?.deps?.statics;
1523
1510
  return detectDuplicateDependencies(statics2, DefaultDependencies);
1524
1511
  }, "statics");
@@ -1864,17 +1851,17 @@ var xyInstallCommands = /* @__PURE__ */ __name((args) => {
1864
1851
  }, "xyInstallCommands");
1865
1852
 
1866
1853
  // src/xy/xyLintCommands.ts
1867
- import chalk21 from "chalk";
1854
+ import chalk20 from "chalk";
1868
1855
  var xyLintCommands = /* @__PURE__ */ __name((args) => {
1869
1856
  return args.command("cycle [package]", "Cycle - Check for dependency cycles", (yargs2) => {
1870
1857
  return packagePositionalParam(yargs2);
1871
- }, (argv) => {
1858
+ }, async (argv) => {
1872
1859
  const start = Date.now();
1873
1860
  if (argv.verbose) console.log("Cycle");
1874
- process.exitCode = cycle({
1861
+ process.exitCode = await cycle({
1875
1862
  pkg: argv.package
1876
1863
  });
1877
- console.log(chalk21.blue(`Finished in ${Date.now() - start}ms`));
1864
+ console.log(chalk20.blue(`Finished in ${Date.now() - start}ms`));
1878
1865
  }).command("lint [package]", "Lint - Run Eslint", (yargs2) => {
1879
1866
  return packagePositionalParam(yargs2);
1880
1867
  }, (argv) => {
@@ -1885,21 +1872,21 @@ var xyLintCommands = /* @__PURE__ */ __name((args) => {
1885
1872
  }) : lint({
1886
1873
  pkg: argv.package
1887
1874
  });
1888
- console.log(chalk21.blue(`Finished in ${Date.now() - start}ms`));
1875
+ console.log(chalk20.blue(`Finished in ${Date.now() - start}ms`));
1889
1876
  }).command("fix [package]", "Fix - Run Eslint w/fix", (yargs2) => {
1890
1877
  return packagePositionalParam(yargs2);
1891
1878
  }, (argv) => {
1892
1879
  const start = Date.now();
1893
1880
  if (argv.verbose) console.log("Fix");
1894
1881
  process.exitCode = fix();
1895
- console.log(chalk21.blue(`Finished in ${Date.now() - start}ms`));
1882
+ console.log(chalk20.blue(`Finished in ${Date.now() - start}ms`));
1896
1883
  }).command("relint [package]", "Relint - Clean & Lint", (yargs2) => {
1897
1884
  return packagePositionalParam(yargs2);
1898
1885
  }, (argv) => {
1899
1886
  if (argv.verbose) console.log("Relinting");
1900
1887
  const start = Date.now();
1901
1888
  process.exitCode = relint();
1902
- console.log(chalk21.blue(`Finished in ${Date.now() - start}ms`));
1889
+ console.log(chalk20.blue(`Finished in ${Date.now() - start}ms`));
1903
1890
  }).command("publint [package]", "Publint - Run Publint", (yargs2) => {
1904
1891
  return packagePositionalParam(yargs2);
1905
1892
  }, async (argv) => {
@@ -1909,21 +1896,21 @@ var xyLintCommands = /* @__PURE__ */ __name((args) => {
1909
1896
  pkg: argv.package,
1910
1897
  verbose: !!argv.verbose
1911
1898
  });
1912
- console.log(chalk21.blue(`Finished in ${Date.now() - start}ms`));
1899
+ console.log(chalk20.blue(`Finished in ${Date.now() - start}ms`));
1913
1900
  }).command("knip", "Knip - Run Knip", (yargs2) => {
1914
1901
  return packagePositionalParam(yargs2);
1915
1902
  }, (argv) => {
1916
1903
  if (argv.verbose) console.log("Knip");
1917
1904
  const start = Date.now();
1918
1905
  process.exitCode = knip();
1919
- console.log(chalk21.blue(`Knip finished in ${Date.now() - start}ms`));
1906
+ console.log(chalk20.blue(`Knip finished in ${Date.now() - start}ms`));
1920
1907
  }).command("sonar", "Sonar - Run Sonar Check", (yargs2) => {
1921
1908
  return packagePositionalParam(yargs2);
1922
1909
  }, (argv) => {
1923
1910
  const start = Date.now();
1924
1911
  if (argv.verbose) console.log("Sonar Check");
1925
1912
  process.exitCode = sonar();
1926
- console.log(chalk21.blue(`Finished in ${Date.now() - start}ms`));
1913
+ console.log(chalk20.blue(`Finished in ${Date.now() - start}ms`));
1927
1914
  });
1928
1915
  }, "xyLintCommands");
1929
1916
 
@@ -1985,8 +1972,8 @@ var xyParseOptions = /* @__PURE__ */ __name(() => {
1985
1972
  var xy = /* @__PURE__ */ __name(async () => {
1986
1973
  const options = xyParseOptions();
1987
1974
  return await xyBuildCommands(xyCommonCommands(xyInstallCommands(xyDeployCommands(xyLintCommands(options))))).demandCommand(1).command("*", "", () => {
1988
- console.error(chalk22.yellow(`Command not found [${chalk22.magenta(process.argv[2])}]`));
1989
- console.log(chalk22.gray("Try 'yarn xy --help' for list of commands"));
1975
+ console.error(chalk21.yellow(`Command not found [${chalk21.magenta(process.argv[2])}]`));
1976
+ console.log(chalk21.gray("Try 'yarn xy --help' for list of commands"));
1990
1977
  }).version().help().argv;
1991
1978
  }, "xy");
1992
1979