@xylabs/ts-scripts-yarn3 5.1.6 → 5.1.8

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
@@ -945,18 +945,13 @@ var lint = /* @__PURE__ */ __name(async ({ pkg, verbose, incremental, fix: fix2
945
945
  });
946
946
  }, "lint");
947
947
  var lintAllPackages = /* @__PURE__ */ __name(({ fix: fix2, verbose = true, incremental } = {}) => {
948
- console.log(chalk13.gray("Linting [All-Packages]"));
948
+ console.log(chalk13.gray(`${fix2 ? "Fix" : "Lint"} [All-Packages]`));
949
949
  const start = Date.now();
950
950
  const verboseOptions = verbose ? [
951
951
  "--verbose"
952
952
  ] : [
953
953
  "--no-verbose"
954
954
  ];
955
- const fixOptions = fix2 ? [
956
- "--fix"
957
- ] : [
958
- ""
959
- ];
960
955
  const incrementalOptions = incremental ? [
961
956
  "--since",
962
957
  "-Apt"
@@ -964,7 +959,7 @@ var lintAllPackages = /* @__PURE__ */ __name(({ fix: fix2, verbose = true, incre
964
959
  "--parallel",
965
960
  "-Apt"
966
961
  ];
967
- const result = runSteps("Lint [All-Packages]", [
962
+ const result = runSteps(`${fix2 ? "Fix" : "Lint"} [All-Packages]`, [
968
963
  [
969
964
  "yarn",
970
965
  [
@@ -973,12 +968,11 @@ var lintAllPackages = /* @__PURE__ */ __name(({ fix: fix2, verbose = true, incre
973
968
  ...verboseOptions,
974
969
  ...incrementalOptions,
975
970
  "run",
976
- fix2 ? "package-fix" : "package-lint",
977
- ...fixOptions
971
+ fix2 ? "package-fix" : "package-lint"
978
972
  ]
979
973
  ]
980
974
  ]);
981
- console.log(`${chalk13.gray("Linted in")} [${chalk13.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk13.gray("seconds")}`);
975
+ console.log(chalk13.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk13.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk13.gray("seconds")}`));
982
976
  return result;
983
977
  }, "lintAllPackages");
984
978