@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/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("
|
|
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
|
|
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(
|
|
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
|
|