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