@xylabs/ts-scripts-yarn3 6.1.2 → 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 -2
- package/dist/actions/index.mjs.map +1 -1
- package/dist/actions/package/index.mjs +5 -2
- package/dist/actions/package/index.mjs.map +1 -1
- package/dist/actions/package/lint.mjs +5 -2
- package/dist/actions/package/lint.mjs.map +1 -1
- package/dist/bin/package/fix.mjs +5 -2
- package/dist/bin/package/fix.mjs.map +1 -1
- package/dist/bin/package/lint.mjs +5 -2
- package/dist/bin/package/lint.mjs.map +1 -1
- package/dist/bin/package/relint.mjs +5 -2
- package/dist/bin/package/relint.mjs.map +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/dist/types/actions/package/lint.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/actions/index.mjs
CHANGED
|
@@ -2103,10 +2103,10 @@ function getFiles(dir, ignoreFolders) {
|
|
|
2103
2103
|
}
|
|
2104
2104
|
__name(getFiles, "getFiles");
|
|
2105
2105
|
var packageLint = /* @__PURE__ */ __name(async (fix2 = false, verbose = false, cache = true) => {
|
|
2106
|
-
const start = Date.now();
|
|
2107
2106
|
const pkg = process.env.INIT_CWD;
|
|
2108
2107
|
const configPath = await getRootESLintConfig();
|
|
2109
2108
|
const { default: eslintConfig } = await import(configPath.href);
|
|
2109
|
+
const start = Date.now();
|
|
2110
2110
|
const ignoreFolders = [
|
|
2111
2111
|
"node_modules",
|
|
2112
2112
|
"dist",
|
|
@@ -2134,7 +2134,10 @@ var packageLint = /* @__PURE__ */ __name(async (fix2 = false, verbose = false, c
|
|
|
2134
2134
|
if (fix2) {
|
|
2135
2135
|
await ESLint2.outputFixes(lintResults);
|
|
2136
2136
|
}
|
|
2137
|
-
|
|
2137
|
+
const filesCountColor = files.length < 100 ? "green" : files.length < 1e3 ? "yellow" : "red";
|
|
2138
|
+
const lintTime = Date.now() - start;
|
|
2139
|
+
const lintTimeColor = lintTime < 1e3 ? "green" : lintTime < 3e3 ? "yellow" : "red";
|
|
2140
|
+
console.log(chalk28.white(`Linted ${chalk28[filesCountColor](files.length)} files in ${chalk28[lintTimeColor](lintTime)}ms`));
|
|
2138
2141
|
return lintResults.reduce((prev, lintResult) => prev + lintResult.errorCount, 0);
|
|
2139
2142
|
}, "packageLint");
|
|
2140
2143
|
|