@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/actions/fix.mjs +4 -10
- package/dist/actions/fix.mjs.map +1 -1
- package/dist/actions/index.mjs +30 -31
- package/dist/actions/index.mjs.map +1 -1
- package/dist/actions/lint-clean.mjs +4 -10
- package/dist/actions/lint-clean.mjs.map +1 -1
- package/dist/actions/lint.mjs +4 -10
- package/dist/actions/lint.mjs.map +1 -1
- package/dist/actions/package/index.mjs +26 -21
- package/dist/actions/package/index.mjs.map +1 -1
- package/dist/actions/package/lint.mjs +26 -21
- package/dist/actions/package/lint.mjs.map +1 -1
- package/dist/bin/package/fix.mjs +26 -21
- package/dist/bin/package/fix.mjs.map +1 -1
- package/dist/bin/package/lint.mjs +26 -21
- package/dist/bin/package/lint.mjs.map +1 -1
- package/dist/bin/xy-ts.mjs +4 -10
- package/dist/bin/xy-ts.mjs.map +1 -1
- package/dist/bin/xy.mjs +4 -10
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/index.mjs +30 -31
- package/dist/index.mjs.map +1 -1
- package/dist/xy/index.mjs +4 -10
- package/dist/xy/index.mjs.map +1 -1
- package/dist/xy/xy.mjs +4 -10
- package/dist/xy/xy.mjs.map +1 -1
- package/dist/xy/xyLintCommands.mjs +4 -10
- package/dist/xy/xyLintCommands.mjs.map +1 -1
- package/package.json +6 -4
- package/src/actions/lint.ts +3 -5
- package/src/actions/package/lint.ts +26 -20
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("
|
|
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
|
|
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(
|
|
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
|
|