@xylabs/ts-scripts-yarn3 5.1.5 → 5.1.7
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 +4 -10
- 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/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 +4 -10
- 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 +4 -4
- package/src/actions/lint.ts +4 -6
package/dist/index.mjs
CHANGED
|
@@ -1062,18 +1062,13 @@ var lint = /* @__PURE__ */ __name(async ({ pkg, verbose, incremental, fix: fix2
|
|
|
1062
1062
|
});
|
|
1063
1063
|
}, "lint");
|
|
1064
1064
|
var lintAllPackages = /* @__PURE__ */ __name(({ fix: fix2, verbose = true, incremental } = {}) => {
|
|
1065
|
-
console.log(chalk15.gray("
|
|
1065
|
+
console.log(chalk15.gray(`${fix2 ? "Fix" : "Lint"} [All-Packages]`));
|
|
1066
1066
|
const start = Date.now();
|
|
1067
1067
|
const verboseOptions = verbose ? [
|
|
1068
1068
|
"--verbose"
|
|
1069
1069
|
] : [
|
|
1070
1070
|
"--no-verbose"
|
|
1071
1071
|
];
|
|
1072
|
-
const fixOptions = fix2 ? [
|
|
1073
|
-
"--fix"
|
|
1074
|
-
] : [
|
|
1075
|
-
""
|
|
1076
|
-
];
|
|
1077
1072
|
const incrementalOptions = incremental ? [
|
|
1078
1073
|
"--since",
|
|
1079
1074
|
"-Apt"
|
|
@@ -1081,7 +1076,7 @@ var lintAllPackages = /* @__PURE__ */ __name(({ fix: fix2, verbose = true, incre
|
|
|
1081
1076
|
"--parallel",
|
|
1082
1077
|
"-Apt"
|
|
1083
1078
|
];
|
|
1084
|
-
const result = runSteps("Lint
|
|
1079
|
+
const result = runSteps(`${fix2 ? "Fix" : "Lint"} [All-Packages]`, [
|
|
1085
1080
|
[
|
|
1086
1081
|
"yarn",
|
|
1087
1082
|
[
|
|
@@ -1090,12 +1085,11 @@ var lintAllPackages = /* @__PURE__ */ __name(({ fix: fix2, verbose = true, incre
|
|
|
1090
1085
|
...verboseOptions,
|
|
1091
1086
|
...incrementalOptions,
|
|
1092
1087
|
"run",
|
|
1093
|
-
"package-lint"
|
|
1094
|
-
...fixOptions
|
|
1088
|
+
fix2 ? "package-fix" : "package-lint"
|
|
1095
1089
|
]
|
|
1096
1090
|
]
|
|
1097
1091
|
]);
|
|
1098
|
-
console.log(
|
|
1092
|
+
console.log(chalk15.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk15.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk15.gray("seconds")}`));
|
|
1099
1093
|
return result;
|
|
1100
1094
|
}, "lintAllPackages");
|
|
1101
1095
|
|