@xylabs/ts-scripts-yarn3 5.0.39 → 5.1.1
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/index.mjs +113 -15
- package/dist/actions/index.mjs.map +1 -1
- package/dist/actions/lint-clean.mjs +31 -6
- package/dist/actions/lint-clean.mjs.map +1 -1
- package/dist/actions/lint.mjs +32 -6
- package/dist/actions/lint.mjs.map +1 -1
- package/dist/actions/package/index.mjs +72 -0
- package/dist/actions/package/index.mjs.map +1 -1
- package/dist/actions/package/lint.mjs +77 -0
- package/dist/actions/package/lint.mjs.map +1 -0
- package/dist/bin/package/lint.mjs +88 -0
- package/dist/bin/package/lint.mjs.map +1 -0
- package/dist/bin/xy-ts.mjs +31 -6
- package/dist/bin/xy-ts.mjs.map +1 -1
- package/dist/bin/xy.mjs +31 -6
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/index.d.ts +6 -2
- package/dist/index.mjs +123 -25
- package/dist/index.mjs.map +1 -1
- package/dist/xy/index.mjs +31 -6
- package/dist/xy/index.mjs.map +1 -1
- package/dist/xy/xy.mjs +31 -6
- package/dist/xy/xy.mjs.map +1 -1
- package/dist/xy/xyLintCommands.mjs +31 -6
- package/dist/xy/xyLintCommands.mjs.map +1 -1
- package/package.json +6 -4
- package/src/actions/lint.ts +24 -2
- package/src/actions/package/index.ts +1 -0
- package/src/actions/package/lint.ts +71 -0
- package/src/bin/package/lint.ts +16 -0
package/dist/xy/index.mjs
CHANGED
|
@@ -1144,20 +1144,45 @@ var lintPackage = /* @__PURE__ */ __name(async ({ pkg }) => {
|
|
|
1144
1144
|
dumpMessages(lintResults);
|
|
1145
1145
|
return lintResults.reduce((prev, lintResult) => prev + lintResult.errorCount, 0);
|
|
1146
1146
|
}, "lintPackage");
|
|
1147
|
-
var lint = /* @__PURE__ */ __name(async ({ pkg } = {}) => {
|
|
1147
|
+
var lint = /* @__PURE__ */ __name(async ({ pkg, verbose, incremental } = {}) => {
|
|
1148
1148
|
return pkg ? await lintPackage({
|
|
1149
1149
|
pkg
|
|
1150
|
-
}) :
|
|
1150
|
+
}) : lintAllPackages({
|
|
1151
|
+
verbose,
|
|
1152
|
+
incremental
|
|
1153
|
+
});
|
|
1154
|
+
}, "lint");
|
|
1155
|
+
var lintAllPackages = /* @__PURE__ */ __name(({ verbose = true, incremental } = {}) => {
|
|
1156
|
+
console.log(chalk16.gray("Linting [All-Packages]"));
|
|
1157
|
+
const start = Date.now();
|
|
1158
|
+
const verboseOptions = verbose ? [
|
|
1159
|
+
"--verbose"
|
|
1160
|
+
] : [
|
|
1161
|
+
"--no-verbose"
|
|
1162
|
+
];
|
|
1163
|
+
const incrementalOptions = incremental ? [
|
|
1164
|
+
"--since",
|
|
1165
|
+
"-Apt"
|
|
1166
|
+
] : [
|
|
1167
|
+
"--parallel",
|
|
1168
|
+
"-Apt"
|
|
1169
|
+
];
|
|
1170
|
+
const result = runSteps("Lint [All-Packages]", [
|
|
1151
1171
|
[
|
|
1152
1172
|
"yarn",
|
|
1153
1173
|
[
|
|
1154
|
-
"
|
|
1155
|
-
"
|
|
1156
|
-
|
|
1174
|
+
"workspaces",
|
|
1175
|
+
"foreach",
|
|
1176
|
+
...verboseOptions,
|
|
1177
|
+
...incrementalOptions,
|
|
1178
|
+
"run",
|
|
1179
|
+
"package-lint"
|
|
1157
1180
|
]
|
|
1158
1181
|
]
|
|
1159
1182
|
]);
|
|
1160
|
-
}
|
|
1183
|
+
console.log(`${chalk16.gray("Linted in")} [${chalk16.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk16.gray("seconds")}`);
|
|
1184
|
+
return result;
|
|
1185
|
+
}, "lintAllPackages");
|
|
1161
1186
|
|
|
1162
1187
|
// src/actions/lint-profile.ts
|
|
1163
1188
|
var lintProfile = /* @__PURE__ */ __name(() => {
|