@xylabs/ts-scripts-yarn3 6.1.1 → 6.1.3
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 +5 -0
- package/dist/actions/index.mjs.map +1 -1
- package/dist/actions/package/index.mjs +5 -0
- package/dist/actions/package/index.mjs.map +1 -1
- package/dist/actions/package/lint.mjs +5 -0
- package/dist/actions/package/lint.mjs.map +1 -1
- package/dist/bin/package/fix.mjs +5 -0
- package/dist/bin/package/fix.mjs.map +1 -1
- package/dist/bin/package/lint.mjs +5 -0
- package/dist/bin/package/lint.mjs.map +1 -1
- package/dist/bin/package/relint.mjs +5 -0
- package/dist/bin/package/relint.mjs.map +1 -1
- package/dist/index.mjs +5 -0
- package/dist/index.mjs.map +1 -1
- package/dist/types/actions/package/lint.d.ts.map +1 -1
- package/package.json +8 -8
package/dist/index.mjs
CHANGED
|
@@ -2200,6 +2200,7 @@ var packageLint = /* @__PURE__ */ __name(async (fix2 = false, verbose = false, c
|
|
|
2200
2200
|
const pkg = process.env.INIT_CWD;
|
|
2201
2201
|
const configPath = await getRootESLintConfig();
|
|
2202
2202
|
const { default: eslintConfig } = await import(configPath.href);
|
|
2203
|
+
const start = Date.now();
|
|
2203
2204
|
const ignoreFolders = [
|
|
2204
2205
|
"node_modules",
|
|
2205
2206
|
"dist",
|
|
@@ -2227,6 +2228,10 @@ var packageLint = /* @__PURE__ */ __name(async (fix2 = false, verbose = false, c
|
|
|
2227
2228
|
if (fix2) {
|
|
2228
2229
|
await ESLint2.outputFixes(lintResults);
|
|
2229
2230
|
}
|
|
2231
|
+
const filesCountColor = files.length < 100 ? "green" : files.length < 1e3 ? "yellow" : "red";
|
|
2232
|
+
const lintTime = Date.now() - start;
|
|
2233
|
+
const lintTimeColor = lintTime < 1e3 ? "green" : lintTime < 3e3 ? "yellow" : "red";
|
|
2234
|
+
console.log(chalk29.white(`Linted ${chalk29[filesCountColor](files.length)} files in ${chalk29[lintTimeColor](lintTime)}ms`));
|
|
2230
2235
|
return lintResults.reduce((prev, lintResult) => prev + lintResult.errorCount, 0);
|
|
2231
2236
|
}, "packageLint");
|
|
2232
2237
|
|