@xylabs/ts-scripts-yarn3 5.1.4 → 5.1.5
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 +135 -12
- package/dist/actions/fix.mjs.map +1 -1
- package/dist/actions/index.mjs +4 -3
- package/dist/actions/index.mjs.map +1 -1
- package/dist/actions/lint-clean.mjs +135 -12
- package/dist/actions/lint-clean.mjs.map +1 -1
- package/dist/actions/lint.mjs +1 -1
- package/dist/actions/lint.mjs.map +1 -1
- package/dist/actions/package/index.mjs +3 -2
- package/dist/actions/package/index.mjs.map +1 -1
- package/dist/actions/package/lint.mjs +3 -2
- package/dist/actions/package/lint.mjs.map +1 -1
- package/dist/bin/package/fix.mjs +89 -0
- package/dist/bin/package/fix.mjs.map +1 -0
- package/dist/bin/package/lint.mjs +3 -2
- package/dist/bin/package/lint.mjs.map +1 -1
- package/dist/bin/xy-ts.mjs +38 -8
- package/dist/bin/xy-ts.mjs.map +1 -1
- package/dist/bin/xy.mjs +38 -8
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/dist/xy/index.mjs +38 -8
- package/dist/xy/index.mjs.map +1 -1
- package/dist/xy/xy.mjs +38 -8
- package/dist/xy/xy.mjs.map +1 -1
- package/dist/xy/xyLintCommands.mjs +38 -8
- package/dist/xy/xyLintCommands.mjs.map +1 -1
- package/package.json +5 -4
- package/src/actions/lint.ts +1 -1
- package/src/actions/package/lint.ts +2 -2
- package/src/bin/package/fix.ts +16 -0
package/dist/index.mjs
CHANGED
|
@@ -1055,7 +1055,7 @@ var lint = /* @__PURE__ */ __name(async ({ pkg, verbose, incremental, fix: fix2
|
|
|
1055
1055
|
return pkg ? await lintPackage({
|
|
1056
1056
|
pkg,
|
|
1057
1057
|
fix: fix2
|
|
1058
|
-
}) :
|
|
1058
|
+
}) : lintAllPackages({
|
|
1059
1059
|
verbose,
|
|
1060
1060
|
incremental,
|
|
1061
1061
|
fix: fix2
|
|
@@ -2136,7 +2136,7 @@ async function getRootESLintConfig() {
|
|
|
2136
2136
|
return pathToFileURL(configPath);
|
|
2137
2137
|
}
|
|
2138
2138
|
__name(getRootESLintConfig, "getRootESLintConfig");
|
|
2139
|
-
var packageLint = /* @__PURE__ */ __name(async () => {
|
|
2139
|
+
var packageLint = /* @__PURE__ */ __name(async (fix2 = false) => {
|
|
2140
2140
|
const configPath = await getRootESLintConfig();
|
|
2141
2141
|
const { default: eslintConfig } = await import(configPath.href);
|
|
2142
2142
|
const ignoreFolders = /* @__PURE__ */ new Set([
|
|
@@ -2159,7 +2159,8 @@ var packageLint = /* @__PURE__ */ __name(async () => {
|
|
|
2159
2159
|
const engine = new ESLint3({
|
|
2160
2160
|
baseConfig: [
|
|
2161
2161
|
...eslintConfig
|
|
2162
|
-
]
|
|
2162
|
+
],
|
|
2163
|
+
fix: fix2
|
|
2163
2164
|
});
|
|
2164
2165
|
const ignorePatterns = [
|
|
2165
2166
|
...eslintConfig.find((cfg) => cfg.ignores)?.ignores ?? [],
|