@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.
package/dist/xy/index.mjs CHANGED
@@ -2,7 +2,7 @@ var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
3
 
4
4
  // src/xy/xy.ts
5
- import chalk22 from "chalk";
5
+ import chalk21 from "chalk";
6
6
 
7
7
  // src/actions/build.ts
8
8
  import chalk7 from "chalk";
@@ -759,15 +759,13 @@ var copyAssets = /* @__PURE__ */ __name(async ({ target, pkg }) => {
759
759
  }, "copyAssets");
760
760
 
761
761
  // src/actions/cycle.ts
762
- import chalk12 from "chalk";
763
- var cycle = /* @__PURE__ */ __name(({ verbose, pkg, incremental, jobs } = {}) => {
762
+ import { cruise } from "dependency-cruiser";
763
+ var cycle = /* @__PURE__ */ __name(async ({ verbose, pkg } = {}) => {
764
764
  return pkg ? cyclePackage({
765
765
  pkg,
766
766
  verbose
767
- }) : cycleAll({
768
- incremental,
769
- verbose,
770
- jobs
767
+ }) : await cycleAll({
768
+ verbose
771
769
  });
772
770
  }, "cycle");
773
771
  var cyclePackage = /* @__PURE__ */ __name(({ pkg, verbose }) => {
@@ -789,45 +787,45 @@ var cyclePackage = /* @__PURE__ */ __name(({ pkg, verbose }) => {
789
787
  ]
790
788
  ]);
791
789
  }, "cyclePackage");
792
- var cycleAll = /* @__PURE__ */ __name(({ jobs, verbose, incremental }) => {
793
- const start = Date.now();
794
- const verboseOptions = verbose ? [
795
- "--verbose"
796
- ] : [
797
- "--no-verbose"
798
- ];
799
- const incrementalOptions = incremental ? [
800
- "--since",
801
- "-Ap",
802
- "--topological-dev"
803
- ] : [
804
- "--parallel",
805
- "-Ap"
806
- ];
807
- const jobsOptions = jobs ? [
808
- "-j",
809
- `${jobs}`
810
- ] : [];
811
- if (jobs) {
812
- console.log(chalk12.blue(`Jobs set to [${jobs}]`));
813
- }
814
- const result = runSteps(`Cycle${incremental ? "-Incremental" : ""} [All]`, [
815
- [
816
- "yarn",
817
- [
818
- "workspaces",
819
- "foreach",
820
- ...incrementalOptions,
821
- ...jobsOptions,
822
- ...verboseOptions,
823
- "run",
824
- "package-cycle",
825
- ...verboseOptions
790
+ var cycleAll = /* @__PURE__ */ __name(async ({ verbose = false }) => {
791
+ const pkgName = process.env.npm_package_name;
792
+ const cruiseOptions = {
793
+ ruleSet: {
794
+ forbidden: [
795
+ {
796
+ name: "no-circular",
797
+ severity: "error",
798
+ comment: "This dependency creates a circular reference",
799
+ from: {},
800
+ to: {
801
+ circular: true
802
+ }
803
+ }
826
804
  ]
827
- ]
828
- ]);
829
- console.log(`${chalk12.gray("Cycles Checked in")} [${chalk12.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk12.gray("seconds")}`);
830
- return result;
805
+ },
806
+ exclude: "node_modules|packages/.*/packages",
807
+ validate: true,
808
+ doNotFollow: {
809
+ path: "node_modules|packages/.*/packages"
810
+ },
811
+ tsPreCompilationDeps: false,
812
+ combinedDependencies: true,
813
+ outputType: verbose ? "text" : "err"
814
+ };
815
+ const target = "**/src";
816
+ console.log(`Checking for circular dependencies in ${target}...`);
817
+ const result = await cruise([
818
+ target
819
+ ], cruiseOptions);
820
+ if (result.output) {
821
+ console.log(result.output);
822
+ }
823
+ if (result.exitCode === 0) {
824
+ console.log(`${pkgName} \u2705 No dependency violations`);
825
+ } else {
826
+ console.error(`${pkgName} \u274C Dependency violations found`);
827
+ }
828
+ return result.exitCode;
831
829
  }, "cycleAll");
832
830
 
833
831
  // src/actions/dead.ts
@@ -949,18 +947,18 @@ var deployNext = /* @__PURE__ */ __name(() => {
949
947
  }, "deployNext");
950
948
 
951
949
  // src/actions/dupdeps.ts
952
- import chalk13 from "chalk";
950
+ import chalk12 from "chalk";
953
951
  var dupdeps = /* @__PURE__ */ __name(() => {
954
- console.log(chalk13.green("Checking all Dependencies for Duplicates"));
952
+ console.log(chalk12.green("Checking all Dependencies for Duplicates"));
955
953
  const allDependencies = parsedPackageJSON()?.dependencies;
956
954
  const dependencies = Object.entries(allDependencies).map(([k]) => k);
957
955
  return detectDuplicateDependencies(dependencies);
958
956
  }, "dupdeps");
959
957
 
960
958
  // src/actions/lint.ts
961
- import chalk14 from "chalk";
959
+ import chalk13 from "chalk";
962
960
  var lintPackage = /* @__PURE__ */ __name(({ pkg, fix: fix2 }) => {
963
- console.log(chalk14.gray(`${fix2 ? "Fix" : "Lint"} [${pkg}]`));
961
+ console.log(chalk13.gray(`${fix2 ? "Fix" : "Lint"} [${pkg}]`));
964
962
  const start = Date.now();
965
963
  const result = runSteps(`${fix2 ? "Fix" : "Lint"} [${pkg}]`, [
966
964
  [
@@ -973,7 +971,7 @@ var lintPackage = /* @__PURE__ */ __name(({ pkg, fix: fix2 }) => {
973
971
  ]
974
972
  ]
975
973
  ]);
976
- console.log(chalk14.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk14.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk14.gray("seconds")}`));
974
+ console.log(chalk13.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk13.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk13.gray("seconds")}`));
977
975
  return result;
978
976
  }, "lintPackage");
979
977
  var lint = /* @__PURE__ */ __name(({ pkg, verbose, incremental, fix: fix2 } = {}) => {
@@ -987,17 +985,21 @@ var lint = /* @__PURE__ */ __name(({ pkg, verbose, incremental, fix: fix2 } = {}
987
985
  });
988
986
  }, "lint");
989
987
  var lintAllPackages = /* @__PURE__ */ __name(({ fix: fix2 = false } = {}) => {
990
- console.log(chalk14.gray(`${fix2 ? "Fix" : "Lint"} [All-Packages]`));
988
+ console.log(chalk13.gray(`${fix2 ? "Fix" : "Lint"} [All-Packages]`));
991
989
  const start = Date.now();
990
+ const fixOptions = fix2 ? [
991
+ "--fix"
992
+ ] : [];
992
993
  const result = runSteps(`${fix2 ? "Fix" : "Lint"} [All-Packages]`, [
993
994
  [
994
995
  "yarn",
995
996
  [
996
- "eslint"
997
+ "eslint",
998
+ ...fixOptions
997
999
  ]
998
1000
  ]
999
1001
  ]);
1000
- console.log(chalk14.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk14.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk14.gray("seconds")}`));
1002
+ console.log(chalk13.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk13.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk13.gray("seconds")}`));
1001
1003
  return result;
1002
1004
  }, "lintAllPackages");
1003
1005
 
@@ -1062,7 +1064,7 @@ var filename = ".gitignore";
1062
1064
  var gitignoreGen = /* @__PURE__ */ __name((pkg) => generateIgnoreFiles(filename, pkg), "gitignoreGen");
1063
1065
 
1064
1066
  // src/actions/gitlint.ts
1065
- import chalk15 from "chalk";
1067
+ import chalk14 from "chalk";
1066
1068
  import ParseGitConfig from "parse-git-config";
1067
1069
  var gitlint = /* @__PURE__ */ __name(() => {
1068
1070
  console.log(`
@@ -1073,7 +1075,7 @@ Gitlint Start [${process.cwd()}]
1073
1075
  const errors = 0;
1074
1076
  const gitConfig = ParseGitConfig.sync();
1075
1077
  const warn = /* @__PURE__ */ __name((message) => {
1076
- console.warn(chalk15.yellow(`Warning: ${message}`));
1078
+ console.warn(chalk14.yellow(`Warning: ${message}`));
1077
1079
  warnings++;
1078
1080
  }, "warn");
1079
1081
  if (gitConfig.core.ignorecase) {
@@ -1093,13 +1095,13 @@ Gitlint Start [${process.cwd()}]
1093
1095
  }
1094
1096
  const resultMessages = [];
1095
1097
  if (valid > 0) {
1096
- resultMessages.push(chalk15.green(`Passed: ${valid}`));
1098
+ resultMessages.push(chalk14.green(`Passed: ${valid}`));
1097
1099
  }
1098
1100
  if (warnings > 0) {
1099
- resultMessages.push(chalk15.yellow(`Warnings: ${warnings}`));
1101
+ resultMessages.push(chalk14.yellow(`Warnings: ${warnings}`));
1100
1102
  }
1101
1103
  if (errors > 0) {
1102
- resultMessages.push(chalk15.red(` Errors: ${errors}`));
1104
+ resultMessages.push(chalk14.red(` Errors: ${errors}`));
1103
1105
  }
1104
1106
  console.warn(`Gitlint Finish [ ${resultMessages.join(" | ")} ]
1105
1107
  `);
@@ -1108,7 +1110,7 @@ Gitlint Start [${process.cwd()}]
1108
1110
 
1109
1111
  // src/actions/gitlint-fix.ts
1110
1112
  import { execSync as execSync2 } from "node:child_process";
1111
- import chalk16 from "chalk";
1113
+ import chalk15 from "chalk";
1112
1114
  import ParseGitConfig2 from "parse-git-config";
1113
1115
  var gitlintFix = /* @__PURE__ */ __name(() => {
1114
1116
  console.log(`
@@ -1119,19 +1121,19 @@ Gitlint Fix Start [${process.cwd()}]
1119
1121
  execSync2("git config core.ignorecase false", {
1120
1122
  stdio: "inherit"
1121
1123
  });
1122
- console.warn(chalk16.yellow("\nGitlint Fix: Updated core.ignorecase to be false\n"));
1124
+ console.warn(chalk15.yellow("\nGitlint Fix: Updated core.ignorecase to be false\n"));
1123
1125
  }
1124
1126
  if (gitConfig.core.autocrlf !== false) {
1125
1127
  execSync2("git config core.autocrlf false", {
1126
1128
  stdio: "inherit"
1127
1129
  });
1128
- console.warn(chalk16.yellow("\nGitlint Fix: Updated core.autocrlf to be false\n"));
1130
+ console.warn(chalk15.yellow("\nGitlint Fix: Updated core.autocrlf to be false\n"));
1129
1131
  }
1130
1132
  if (gitConfig.core.eol !== "lf") {
1131
1133
  execSync2("git config core.eol lf", {
1132
1134
  stdio: "inherit"
1133
1135
  });
1134
- console.warn(chalk16.yellow('\nGitlint Fix: Updated core.eol to be "lf"\n'));
1136
+ console.warn(chalk15.yellow('\nGitlint Fix: Updated core.eol to be "lf"\n'));
1135
1137
  }
1136
1138
  return 1;
1137
1139
  }, "gitlintFix");
@@ -1151,7 +1153,7 @@ var knip = /* @__PURE__ */ __name(() => {
1151
1153
  }, "knip");
1152
1154
 
1153
1155
  // src/actions/license.ts
1154
- import chalk17 from "chalk";
1156
+ import chalk16 from "chalk";
1155
1157
  import { init } from "license-checker";
1156
1158
  var license = /* @__PURE__ */ __name(async (pkg) => {
1157
1159
  const workspaces = yarnWorkspaces();
@@ -1176,7 +1178,7 @@ var license = /* @__PURE__ */ __name(async (pkg) => {
1176
1178
  "LGPL-3.0-or-later",
1177
1179
  "Python-2.0"
1178
1180
  ]);
1179
- console.log(chalk17.green("License Checker"));
1181
+ console.log(chalk16.green("License Checker"));
1180
1182
  return (await Promise.all(workspaceList.map(({ location, name }) => {
1181
1183
  return new Promise((resolve) => {
1182
1184
  init({
@@ -1184,12 +1186,12 @@ var license = /* @__PURE__ */ __name(async (pkg) => {
1184
1186
  start: location
1185
1187
  }, (error, packages) => {
1186
1188
  if (error) {
1187
- console.error(chalk17.red(`License Checker [${name}] Error`));
1188
- console.error(chalk17.gray(error));
1189
+ console.error(chalk16.red(`License Checker [${name}] Error`));
1190
+ console.error(chalk16.gray(error));
1189
1191
  console.log("\n");
1190
1192
  resolve(1);
1191
1193
  } else {
1192
- console.log(chalk17.green(`License Checker [${name}]`));
1194
+ console.log(chalk16.green(`License Checker [${name}]`));
1193
1195
  let count = 0;
1194
1196
  for (const [name2, info] of Object.entries(packages)) {
1195
1197
  const licenses = Array.isArray(info.licenses) ? info.licenses : [
@@ -1207,7 +1209,7 @@ var license = /* @__PURE__ */ __name(async (pkg) => {
1207
1209
  }
1208
1210
  if (!orLicenseFound) {
1209
1211
  count++;
1210
- console.warn(chalk17.yellow(`${name2}: Package License not allowed [${license2}]`));
1212
+ console.warn(chalk16.yellow(`${name2}: Package License not allowed [${license2}]`));
1211
1213
  }
1212
1214
  }
1213
1215
  }
@@ -1282,7 +1284,7 @@ var rebuild = /* @__PURE__ */ __name(({ target }) => {
1282
1284
  }, "rebuild");
1283
1285
 
1284
1286
  // src/actions/recompile.ts
1285
- import chalk18 from "chalk";
1287
+ import chalk17 from "chalk";
1286
1288
  var recompile = /* @__PURE__ */ __name(async ({ verbose, target, pkg, incremental }) => {
1287
1289
  return pkg ? await recompilePackage({
1288
1290
  pkg,
@@ -1337,7 +1339,7 @@ var recompileAll = /* @__PURE__ */ __name(async ({ jobs, verbose, target, increm
1337
1339
  `${jobs}`
1338
1340
  ] : [];
1339
1341
  if (jobs) {
1340
- console.log(chalk18.blue(`Jobs set to [${jobs}]`));
1342
+ console.log(chalk17.blue(`Jobs set to [${jobs}]`));
1341
1343
  }
1342
1344
  const result = await runStepsAsync(`Recompile${incremental ? "-Incremental" : ""} [All]`, [
1343
1345
  [
@@ -1367,7 +1369,7 @@ var recompileAll = /* @__PURE__ */ __name(async ({ jobs, verbose, target, increm
1367
1369
  ]
1368
1370
  ]
1369
1371
  ]);
1370
- console.log(`${chalk18.gray("Recompiled in")} [${chalk18.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk18.gray("seconds")}`);
1372
+ console.log(`${chalk17.gray("Recompiled in")} [${chalk17.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk17.gray("seconds")}`);
1371
1373
  return result;
1372
1374
  }, "recompileAll");
1373
1375
 
@@ -1401,9 +1403,9 @@ var reinstall = /* @__PURE__ */ __name(() => {
1401
1403
  }, "reinstall");
1402
1404
 
1403
1405
  // src/actions/relint.ts
1404
- import chalk19 from "chalk";
1406
+ import chalk18 from "chalk";
1405
1407
  var relintPackage = /* @__PURE__ */ __name(({ pkg }) => {
1406
- console.log(chalk19.gray(`${"Relint"} [All-Packages]`));
1408
+ console.log(chalk18.gray(`${"Relint"} [All-Packages]`));
1407
1409
  const start = Date.now();
1408
1410
  const result = runSteps("Relint [All-Packages]", [
1409
1411
  [
@@ -1416,7 +1418,7 @@ var relintPackage = /* @__PURE__ */ __name(({ pkg }) => {
1416
1418
  ]
1417
1419
  ]
1418
1420
  ]);
1419
- console.log(chalk19.gray(`${"Relinted in"} [${chalk19.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk19.gray("seconds")}`));
1421
+ console.log(chalk18.gray(`${"Relinted in"} [${chalk18.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk18.gray("seconds")}`));
1420
1422
  return result;
1421
1423
  }, "relintPackage");
1422
1424
  var relint = /* @__PURE__ */ __name(({ pkg, verbose, incremental } = {}) => {
@@ -1428,7 +1430,7 @@ var relint = /* @__PURE__ */ __name(({ pkg, verbose, incremental } = {}) => {
1428
1430
  });
1429
1431
  }, "relint");
1430
1432
  var relintAllPackages = /* @__PURE__ */ __name(({ verbose = true, incremental } = {}) => {
1431
- console.log(chalk19.gray(`${"Relint"} [All-Packages]`));
1433
+ console.log(chalk18.gray(`${"Relint"} [All-Packages]`));
1432
1434
  const start = Date.now();
1433
1435
  const verboseOptions = verbose ? [
1434
1436
  "--verbose"
@@ -1455,7 +1457,7 @@ var relintAllPackages = /* @__PURE__ */ __name(({ verbose = true, incremental }
1455
1457
  ]
1456
1458
  ]
1457
1459
  ]);
1458
- console.log(chalk19.gray(`Relinted in [${chalk19.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk19.gray("seconds")}`));
1460
+ console.log(chalk18.gray(`Relinted in [${chalk18.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk18.gray("seconds")}`));
1459
1461
  return result;
1460
1462
  }, "relintAllPackages");
1461
1463
 
@@ -1495,7 +1497,7 @@ var sonar = /* @__PURE__ */ __name(() => {
1495
1497
  }, "sonar");
1496
1498
 
1497
1499
  // src/actions/statics.ts
1498
- import chalk20 from "chalk";
1500
+ import chalk19 from "chalk";
1499
1501
  var DefaultDependencies = [
1500
1502
  "axios",
1501
1503
  "@xylabs/pixel",
@@ -1506,7 +1508,7 @@ var DefaultDependencies = [
1506
1508
  "@mui/system"
1507
1509
  ];
1508
1510
  var statics = /* @__PURE__ */ __name(() => {
1509
- console.log(chalk20.green("Check Required Static Dependencies"));
1511
+ console.log(chalk19.green("Check Required Static Dependencies"));
1510
1512
  const statics2 = parsedPackageJSON()?.xy?.deps?.statics;
1511
1513
  return detectDuplicateDependencies(statics2, DefaultDependencies);
1512
1514
  }, "statics");
@@ -1852,17 +1854,17 @@ var xyInstallCommands = /* @__PURE__ */ __name((args) => {
1852
1854
  }, "xyInstallCommands");
1853
1855
 
1854
1856
  // src/xy/xyLintCommands.ts
1855
- import chalk21 from "chalk";
1857
+ import chalk20 from "chalk";
1856
1858
  var xyLintCommands = /* @__PURE__ */ __name((args) => {
1857
1859
  return args.command("cycle [package]", "Cycle - Check for dependency cycles", (yargs2) => {
1858
1860
  return packagePositionalParam(yargs2);
1859
- }, (argv) => {
1861
+ }, async (argv) => {
1860
1862
  const start = Date.now();
1861
1863
  if (argv.verbose) console.log("Cycle");
1862
- process.exitCode = cycle({
1864
+ process.exitCode = await cycle({
1863
1865
  pkg: argv.package
1864
1866
  });
1865
- console.log(chalk21.blue(`Finished in ${Date.now() - start}ms`));
1867
+ console.log(chalk20.blue(`Finished in ${Date.now() - start}ms`));
1866
1868
  }).command("lint [package]", "Lint - Run Eslint", (yargs2) => {
1867
1869
  return packagePositionalParam(yargs2);
1868
1870
  }, (argv) => {
@@ -1873,21 +1875,21 @@ var xyLintCommands = /* @__PURE__ */ __name((args) => {
1873
1875
  }) : lint({
1874
1876
  pkg: argv.package
1875
1877
  });
1876
- console.log(chalk21.blue(`Finished in ${Date.now() - start}ms`));
1878
+ console.log(chalk20.blue(`Finished in ${Date.now() - start}ms`));
1877
1879
  }).command("fix [package]", "Fix - Run Eslint w/fix", (yargs2) => {
1878
1880
  return packagePositionalParam(yargs2);
1879
1881
  }, (argv) => {
1880
1882
  const start = Date.now();
1881
1883
  if (argv.verbose) console.log("Fix");
1882
1884
  process.exitCode = fix();
1883
- console.log(chalk21.blue(`Finished in ${Date.now() - start}ms`));
1885
+ console.log(chalk20.blue(`Finished in ${Date.now() - start}ms`));
1884
1886
  }).command("relint [package]", "Relint - Clean & Lint", (yargs2) => {
1885
1887
  return packagePositionalParam(yargs2);
1886
1888
  }, (argv) => {
1887
1889
  if (argv.verbose) console.log("Relinting");
1888
1890
  const start = Date.now();
1889
1891
  process.exitCode = relint();
1890
- console.log(chalk21.blue(`Finished in ${Date.now() - start}ms`));
1892
+ console.log(chalk20.blue(`Finished in ${Date.now() - start}ms`));
1891
1893
  }).command("publint [package]", "Publint - Run Publint", (yargs2) => {
1892
1894
  return packagePositionalParam(yargs2);
1893
1895
  }, async (argv) => {
@@ -1897,21 +1899,21 @@ var xyLintCommands = /* @__PURE__ */ __name((args) => {
1897
1899
  pkg: argv.package,
1898
1900
  verbose: !!argv.verbose
1899
1901
  });
1900
- console.log(chalk21.blue(`Finished in ${Date.now() - start}ms`));
1902
+ console.log(chalk20.blue(`Finished in ${Date.now() - start}ms`));
1901
1903
  }).command("knip", "Knip - Run Knip", (yargs2) => {
1902
1904
  return packagePositionalParam(yargs2);
1903
1905
  }, (argv) => {
1904
1906
  if (argv.verbose) console.log("Knip");
1905
1907
  const start = Date.now();
1906
1908
  process.exitCode = knip();
1907
- console.log(chalk21.blue(`Knip finished in ${Date.now() - start}ms`));
1909
+ console.log(chalk20.blue(`Knip finished in ${Date.now() - start}ms`));
1908
1910
  }).command("sonar", "Sonar - Run Sonar Check", (yargs2) => {
1909
1911
  return packagePositionalParam(yargs2);
1910
1912
  }, (argv) => {
1911
1913
  const start = Date.now();
1912
1914
  if (argv.verbose) console.log("Sonar Check");
1913
1915
  process.exitCode = sonar();
1914
- console.log(chalk21.blue(`Finished in ${Date.now() - start}ms`));
1916
+ console.log(chalk20.blue(`Finished in ${Date.now() - start}ms`));
1915
1917
  });
1916
1918
  }, "xyLintCommands");
1917
1919
 
@@ -1973,8 +1975,8 @@ var xyParseOptions = /* @__PURE__ */ __name(() => {
1973
1975
  var xy = /* @__PURE__ */ __name(async () => {
1974
1976
  const options = xyParseOptions();
1975
1977
  return await xyBuildCommands(xyCommonCommands(xyInstallCommands(xyDeployCommands(xyLintCommands(options))))).demandCommand(1).command("*", "", () => {
1976
- console.error(chalk22.yellow(`Command not found [${chalk22.magenta(process.argv[2])}]`));
1977
- console.log(chalk22.gray("Try 'yarn xy --help' for list of commands"));
1978
+ console.error(chalk21.yellow(`Command not found [${chalk21.magenta(process.argv[2])}]`));
1979
+ console.log(chalk21.gray("Try 'yarn xy --help' for list of commands"));
1978
1980
  }).version().help().argv;
1979
1981
  }, "xy");
1980
1982
  export {