@xylabs/ts-scripts-yarn3 5.1.3 → 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.map +1 -1
- package/dist/actions/index.mjs +7 -8
- package/dist/actions/index.mjs.map +1 -1
- package/dist/actions/lint-clean.mjs.map +1 -1
- package/dist/actions/lint.mjs +4 -6
- 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.map +1 -1
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +7 -8
- package/dist/index.mjs.map +1 -1
- package/dist/xy/index.mjs.map +1 -1
- package/dist/xy/xy.mjs.map +1 -1
- package/dist/xy/xyLintCommands.mjs.map +1 -1
- package/package.json +5 -4
- package/src/actions/lint.ts +2 -3
- package/src/actions/package/lint.ts +2 -2
- package/src/bin/package/fix.ts +16 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
4
|
+
|
|
5
|
+
// src/bin/package/fix.ts
|
|
6
|
+
import chalk2 from "chalk";
|
|
7
|
+
|
|
8
|
+
// src/actions/package/lint.ts
|
|
9
|
+
import { readdirSync } from "node:fs";
|
|
10
|
+
import path from "node:path";
|
|
11
|
+
import { cwd } from "node:process";
|
|
12
|
+
import { pathToFileURL } from "node:url";
|
|
13
|
+
import chalk from "chalk";
|
|
14
|
+
import { ESLint } from "eslint";
|
|
15
|
+
import { findUp } from "find-up";
|
|
16
|
+
var dumpMessages = /* @__PURE__ */ __name((lintResults) => {
|
|
17
|
+
const colors = [
|
|
18
|
+
"white",
|
|
19
|
+
"yellow",
|
|
20
|
+
"red"
|
|
21
|
+
];
|
|
22
|
+
const severity = [
|
|
23
|
+
"none",
|
|
24
|
+
"warning",
|
|
25
|
+
"error"
|
|
26
|
+
];
|
|
27
|
+
for (const lintResult of lintResults) {
|
|
28
|
+
if (lintResult.messages.length > 0) {
|
|
29
|
+
console.log(chalk.gray(`
|
|
30
|
+
${lintResult.filePath}`));
|
|
31
|
+
for (const message of lintResult.messages) {
|
|
32
|
+
console.log(chalk.gray(` ${message.line}:${message.column}`), chalk[colors[message.severity]](` ${severity[message.severity]}`), chalk.white(` ${message.message}`), chalk.gray(` ${message.ruleId}`));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}, "dumpMessages");
|
|
37
|
+
async function getRootESLintConfig() {
|
|
38
|
+
const configPath = await findUp("eslint.config.mjs");
|
|
39
|
+
if (!configPath) {
|
|
40
|
+
throw new Error("eslint.config.mjs not found in the monorepo");
|
|
41
|
+
}
|
|
42
|
+
return pathToFileURL(configPath);
|
|
43
|
+
}
|
|
44
|
+
__name(getRootESLintConfig, "getRootESLintConfig");
|
|
45
|
+
var packageLint = /* @__PURE__ */ __name(async (fix = false) => {
|
|
46
|
+
const configPath = await getRootESLintConfig();
|
|
47
|
+
const { default: eslintConfig } = await import(configPath.href);
|
|
48
|
+
const ignoreFolders = /* @__PURE__ */ new Set([
|
|
49
|
+
"node_modules",
|
|
50
|
+
"dist",
|
|
51
|
+
"packages"
|
|
52
|
+
]);
|
|
53
|
+
function getFiles(dir, ignorePatterns2) {
|
|
54
|
+
return readdirSync(dir, {
|
|
55
|
+
withFileTypes: true
|
|
56
|
+
}).flatMap((dirent) => {
|
|
57
|
+
const res = path.resolve(dir, dirent.name);
|
|
58
|
+
if (ignorePatterns2.some((pattern) => dir.includes(pattern))) return [];
|
|
59
|
+
return dirent.isDirectory() ? getFiles(res, ignorePatterns2) : res.endsWith(".ts") || res.endsWith(".tsx") || res.endsWith(".js") || res.endsWith(".jsx") ? [
|
|
60
|
+
res
|
|
61
|
+
] : [];
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
__name(getFiles, "getFiles");
|
|
65
|
+
const engine = new ESLint({
|
|
66
|
+
baseConfig: [
|
|
67
|
+
...eslintConfig
|
|
68
|
+
],
|
|
69
|
+
fix
|
|
70
|
+
});
|
|
71
|
+
const ignorePatterns = [
|
|
72
|
+
...eslintConfig.find((cfg) => cfg.ignores)?.ignores ?? [],
|
|
73
|
+
...ignoreFolders
|
|
74
|
+
];
|
|
75
|
+
const lintResults = await engine.lintFiles(getFiles(cwd(), ignorePatterns));
|
|
76
|
+
dumpMessages(lintResults);
|
|
77
|
+
return lintResults.reduce((prev, lintResult) => prev + lintResult.errorCount, 0);
|
|
78
|
+
}, "packageLint");
|
|
79
|
+
|
|
80
|
+
// src/bin/package/fix.ts
|
|
81
|
+
packageLint(true).then((value) => {
|
|
82
|
+
if (value) {
|
|
83
|
+
process.exit(value);
|
|
84
|
+
}
|
|
85
|
+
}).catch((reason) => {
|
|
86
|
+
console.error(chalk2.red(reason));
|
|
87
|
+
process.exit(-1);
|
|
88
|
+
});
|
|
89
|
+
//# sourceMappingURL=fix.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/bin/package/fix.ts","../../../src/actions/package/lint.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport chalk from 'chalk'\n\nimport { packageLint } from '../../actions/index.ts'\n\npackageLint(true)\n .then((value) => {\n if (value) {\n process.exit(value)\n }\n })\n .catch((reason) => {\n console.error(chalk.red(reason))\n process.exit(-1)\n })\n","import { readdirSync } from 'node:fs'\nimport path from 'node:path'\nimport { cwd } from 'node:process'\nimport { pathToFileURL } from 'node:url'\n\nimport chalk from 'chalk'\nimport { ESLint } from 'eslint'\nimport { findUp } from 'find-up'\n\nconst dumpMessages = (lintResults: ESLint.LintResult[]) => {\n const colors: ('white' | 'red' | 'yellow')[] = ['white', 'yellow', 'red']\n const severity: string[] = ['none', 'warning', 'error']\n\n for (const lintResult of lintResults) {\n if (lintResult.messages.length > 0) {\n console.log(chalk.gray(`\\n${lintResult.filePath}`))\n for (const message of lintResult.messages) {\n console.log(\n chalk.gray(`\\t${message.line}:${message.column}`),\n chalk[colors[message.severity]](`\\t${severity[message.severity]}`),\n chalk.white(`\\t${message.message}`),\n chalk.gray(`\\t${message.ruleId}`),\n )\n }\n }\n }\n}\n\nasync function getRootESLintConfig() {\n // Locate the root eslint.config.mjs\n const configPath = await findUp('eslint.config.mjs')\n\n if (!configPath) {\n throw new Error('eslint.config.mjs not found in the monorepo')\n }\n\n return pathToFileURL(configPath)\n}\n\nexport const packageLint = async (fix = false) => {\n const configPath = await getRootESLintConfig()\n const { default: eslintConfig } = await import(configPath.href)\n\n // List of folders to ignore\n const ignoreFolders = new Set(['node_modules', 'dist', 'packages'])\n\n function getFiles(dir: string, ignorePatterns: string[]): string[] {\n return readdirSync(dir, { withFileTypes: true })\n .flatMap((dirent) => {\n const res = path.resolve(dir, dirent.name)\n\n // Exclude ignored paths\n if (ignorePatterns.some(pattern => dir.includes(pattern))) return []\n\n return dirent.isDirectory()\n ? getFiles(res, ignorePatterns)\n : (res.endsWith('.ts') || res.endsWith('.tsx') || res.endsWith('.js') || res.endsWith('.jsx')) ? [res] : []\n })\n }\n\n const engine = new ESLint({ baseConfig: [...eslintConfig], fix })\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const ignorePatterns = [...eslintConfig.find((cfg: any) => cfg.ignores)?.ignores ?? [], ...ignoreFolders]\n\n const lintResults = await engine.lintFiles(getFiles(cwd(), ignorePatterns))\n\n dumpMessages(lintResults)\n\n return lintResults.reduce((prev, lintResult) => prev + lintResult.errorCount, 0)\n}\n"],"mappings":";;;;;AAEA,OAAOA,YAAW;;;ACFlB,SAASC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OI,IAAI;AAGzC,UAAIR,gBAAeS,KAAKC,CAAAA,YAAWX,IAAIY,SAASD,OAAAA,CAAAA,EAAW,QAAO,CAAA;AAElE,aAAON,OAAOQ,YAAW,IACrBd,SAASO,KAAKL,eAAAA,IACbK,IAAIQ,SAAS,KAAA,KAAUR,IAAIQ,SAAS,MAAA,KAAWR,IAAIQ,SAAS,KAAA,KAAUR,IAAIQ,SAAS,MAAA,IAAW;QAACR;UAAO,CAAA;IAC7G,CAAA;EACJ;AAZSP;AAcT,QAAMgB,SAAS,IAAIC,OAAO;IAAEC,YAAY;SAAItB;;IAAeF;EAAI,CAAA;AAG/D,QAAMQ,iBAAiB;OAAIN,aAAauB,KAAK,CAACC,QAAaA,IAAIC,OAAO,GAAGA,WAAW,CAAA;OAAOvB;;AAE3F,QAAM1B,cAAc,MAAM4C,OAAOM,UAAUtB,SAASuB,IAAAA,GAAOrB,cAAAA,CAAAA;AAE3D/B,eAAaC,WAAAA;AAEb,SAAOA,YAAYoD,OAAO,CAACC,MAAMlD,eAAekD,OAAOlD,WAAWmD,YAAY,CAAA;AAChF,GA/B2B;;;ADjC3BC,YAAY,IAAA,EACTC,KAAK,CAACC,UAAAA;AACL,MAAIA,OAAO;AACTC,YAAQC,KAAKF,KAAAA;EACf;AACF,CAAA,EACCG,MAAM,CAACC,WAAAA;AACNC,UAAQC,MAAMC,OAAMC,IAAIJ,MAAAA,CAAAA;AACxBH,UAAQC,KAAK,EAAC;AAChB,CAAA;","names":["chalk","readdirSync","path","cwd","pathToFileURL","chalk","ESLint","findUp","dumpMessages","lintResults","colors","severity","lintResult","messages","length","console","log","chalk","gray","filePath","message","line","column","white","ruleId","getRootESLintConfig","configPath","findUp","Error","pathToFileURL","packageLint","fix","default","eslintConfig","href","ignoreFolders","Set","getFiles","dir","ignorePatterns","readdirSync","withFileTypes","flatMap","dirent","res","path","resolve","name","some","pattern","includes","isDirectory","endsWith","engine","ESLint","baseConfig","find","cfg","ignores","lintFiles","cwd","reduce","prev","errorCount","packageLint","then","value","process","exit","catch","reason","console","error","chalk","red"]}
|
|
@@ -42,7 +42,7 @@ async function getRootESLintConfig() {
|
|
|
42
42
|
return pathToFileURL(configPath);
|
|
43
43
|
}
|
|
44
44
|
__name(getRootESLintConfig, "getRootESLintConfig");
|
|
45
|
-
var packageLint = /* @__PURE__ */ __name(async () => {
|
|
45
|
+
var packageLint = /* @__PURE__ */ __name(async (fix = false) => {
|
|
46
46
|
const configPath = await getRootESLintConfig();
|
|
47
47
|
const { default: eslintConfig } = await import(configPath.href);
|
|
48
48
|
const ignoreFolders = /* @__PURE__ */ new Set([
|
|
@@ -65,7 +65,8 @@ var packageLint = /* @__PURE__ */ __name(async () => {
|
|
|
65
65
|
const engine = new ESLint({
|
|
66
66
|
baseConfig: [
|
|
67
67
|
...eslintConfig
|
|
68
|
-
]
|
|
68
|
+
],
|
|
69
|
+
fix
|
|
69
70
|
});
|
|
70
71
|
const ignorePatterns = [
|
|
71
72
|
...eslintConfig.find((cfg) => cfg.ignores)?.ignores ?? [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/bin/package/lint.ts","../../../src/actions/package/lint.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport chalk from 'chalk'\n\nimport { packageLint } from '../../actions/index.ts'\n\npackageLint()\n .then((value) => {\n if (value) {\n process.exit(value)\n }\n })\n .catch((reason) => {\n console.error(chalk.red(reason))\n process.exit(-1)\n })\n","import { readdirSync } from 'node:fs'\nimport path from 'node:path'\nimport { cwd } from 'node:process'\nimport { pathToFileURL } from 'node:url'\n\nimport chalk from 'chalk'\nimport { ESLint } from 'eslint'\nimport { findUp } from 'find-up'\n\nconst dumpMessages = (lintResults: ESLint.LintResult[]) => {\n const colors: ('white' | 'red' | 'yellow')[] = ['white', 'yellow', 'red']\n const severity: string[] = ['none', 'warning', 'error']\n\n for (const lintResult of lintResults) {\n if (lintResult.messages.length > 0) {\n console.log(chalk.gray(`\\n${lintResult.filePath}`))\n for (const message of lintResult.messages) {\n console.log(\n chalk.gray(`\\t${message.line}:${message.column}`),\n chalk[colors[message.severity]](`\\t${severity[message.severity]}`),\n chalk.white(`\\t${message.message}`),\n chalk.gray(`\\t${message.ruleId}`),\n )\n }\n }\n }\n}\n\nasync function getRootESLintConfig() {\n // Locate the root eslint.config.mjs\n const configPath = await findUp('eslint.config.mjs')\n\n if (!configPath) {\n throw new Error('eslint.config.mjs not found in the monorepo')\n }\n\n return pathToFileURL(configPath)\n}\n\nexport const packageLint = async () => {\n const configPath = await getRootESLintConfig()\n const { default: eslintConfig } = await import(configPath.href)\n\n // List of folders to ignore\n const ignoreFolders = new Set(['node_modules', 'dist', 'packages'])\n\n function getFiles(dir: string, ignorePatterns: string[]): string[] {\n return readdirSync(dir, { withFileTypes: true })\n .flatMap((dirent) => {\n const res = path.resolve(dir, dirent.name)\n\n // Exclude ignored paths\n if (ignorePatterns.some(pattern => dir.includes(pattern))) return []\n\n return dirent.isDirectory()\n ? getFiles(res, ignorePatterns)\n : (res.endsWith('.ts') || res.endsWith('.tsx') || res.endsWith('.js') || res.endsWith('.jsx')) ? [res] : []\n })\n }\n\n const engine = new ESLint({ baseConfig: [...eslintConfig] })\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const ignorePatterns = [...eslintConfig.find((cfg: any) => cfg.ignores)?.ignores ?? [], ...ignoreFolders]\n\n const lintResults = await engine.lintFiles(getFiles(cwd(), ignorePatterns))\n\n dumpMessages(lintResults)\n\n return lintResults.reduce((prev, lintResult) => prev + lintResult.errorCount, 0)\n}\n"],"mappings":";;;;;AAEA,OAAOA,YAAW;;;ACFlB,SAASC,mBAAmB;AAC5B,OAAOC,UAAU;AACjB,SAASC,WAAW;AACpB,SAASC,qBAAqB;AAE9B,OAAOC,WAAW;AAClB,SAASC,cAAc;AACvB,SAASC,cAAc;AAEvB,IAAMC,eAAe,wBAACC,gBAAAA;AACpB,QAAMC,SAAyC;IAAC;IAAS;IAAU;;AACnE,QAAMC,WAAqB;IAAC;IAAQ;IAAW;;AAE/C,aAAWC,cAAcH,aAAa;AACpC,QAAIG,WAAWC,SAASC,SAAS,GAAG;AAClCC,cAAQC,IAAIC,MAAMC,KAAK;EAAKN,WAAWO,QAAQ,EAAE,CAAA;AACjD,iBAAWC,WAAWR,WAAWC,UAAU;AACzCE,gBAAQC,IACNC,MAAMC,KAAK,IAAKE,QAAQC,IAAI,IAAID,QAAQE,MAAM,EAAE,GAChDL,MAAMP,OAAOU,QAAQT,QAAQ,CAAC,EAAE,IAAKA,SAASS,QAAQT,QAAQ,CAAC,EAAE,GACjEM,MAAMM,MAAM,IAAKH,QAAQA,OAAO,EAAE,GAClCH,MAAMC,KAAK,IAAKE,QAAQI,MAAM,EAAE,CAAA;MAEpC;IACF;EACF;AACF,GAjBqB;AAmBrB,eAAeC,sBAAAA;AAEb,QAAMC,aAAa,MAAMC,OAAO,mBAAA;AAEhC,MAAI,CAACD,YAAY;AACf,UAAM,IAAIE,MAAM,6CAAA;EAClB;AAEA,SAAOC,cAAcH,UAAAA;AACvB;AATeD;AAWR,IAAMK,cAAc,
|
|
1
|
+
{"version":3,"sources":["../../../src/bin/package/lint.ts","../../../src/actions/package/lint.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport chalk from 'chalk'\n\nimport { packageLint } from '../../actions/index.ts'\n\npackageLint()\n .then((value) => {\n if (value) {\n process.exit(value)\n }\n })\n .catch((reason) => {\n console.error(chalk.red(reason))\n process.exit(-1)\n })\n","import { readdirSync } from 'node:fs'\nimport path from 'node:path'\nimport { cwd } from 'node:process'\nimport { pathToFileURL } from 'node:url'\n\nimport chalk from 'chalk'\nimport { ESLint } from 'eslint'\nimport { findUp } from 'find-up'\n\nconst dumpMessages = (lintResults: ESLint.LintResult[]) => {\n const colors: ('white' | 'red' | 'yellow')[] = ['white', 'yellow', 'red']\n const severity: string[] = ['none', 'warning', 'error']\n\n for (const lintResult of lintResults) {\n if (lintResult.messages.length > 0) {\n console.log(chalk.gray(`\\n${lintResult.filePath}`))\n for (const message of lintResult.messages) {\n console.log(\n chalk.gray(`\\t${message.line}:${message.column}`),\n chalk[colors[message.severity]](`\\t${severity[message.severity]}`),\n chalk.white(`\\t${message.message}`),\n chalk.gray(`\\t${message.ruleId}`),\n )\n }\n }\n }\n}\n\nasync function getRootESLintConfig() {\n // Locate the root eslint.config.mjs\n const configPath = await findUp('eslint.config.mjs')\n\n if (!configPath) {\n throw new Error('eslint.config.mjs not found in the monorepo')\n }\n\n return pathToFileURL(configPath)\n}\n\nexport const packageLint = async (fix = false) => {\n const configPath = await getRootESLintConfig()\n const { default: eslintConfig } = await import(configPath.href)\n\n // List of folders to ignore\n const ignoreFolders = new Set(['node_modules', 'dist', 'packages'])\n\n function getFiles(dir: string, ignorePatterns: string[]): string[] {\n return readdirSync(dir, { withFileTypes: true })\n .flatMap((dirent) => {\n const res = path.resolve(dir, dirent.name)\n\n // Exclude ignored paths\n if (ignorePatterns.some(pattern => dir.includes(pattern))) return []\n\n return dirent.isDirectory()\n ? getFiles(res, ignorePatterns)\n : (res.endsWith('.ts') || res.endsWith('.tsx') || res.endsWith('.js') || res.endsWith('.jsx')) ? [res] : []\n })\n }\n\n const engine = new ESLint({ baseConfig: [...eslintConfig], fix })\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const ignorePatterns = [...eslintConfig.find((cfg: any) => cfg.ignores)?.ignores ?? [], ...ignoreFolders]\n\n const lintResults = await engine.lintFiles(getFiles(cwd(), ignorePatterns))\n\n dumpMessages(lintResults)\n\n return lintResults.reduce((prev, lintResult) => prev + lintResult.errorCount, 0)\n}\n"],"mappings":";;;;;AAEA,OAAOA,YAAW;;;ACFlB,SAASC,mBAAmB;AAC5B,OAAOC,UAAU;AACjB,SAASC,WAAW;AACpB,SAASC,qBAAqB;AAE9B,OAAOC,WAAW;AAClB,SAASC,cAAc;AACvB,SAASC,cAAc;AAEvB,IAAMC,eAAe,wBAACC,gBAAAA;AACpB,QAAMC,SAAyC;IAAC;IAAS;IAAU;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S,MAAA,KAAWR,IAAIQ,SAAS,KAAA,KAAUR,IAAIQ,SAAS,MAAA,IAAW;QAACR;UAAO,CAAA;IAC7G,CAAA;EACJ;AAZSP;AAcT,QAAMgB,SAAS,IAAIC,OAAO;IAAEC,YAAY;SAAItB;;IAAeF;EAAI,CAAA;AAG/D,QAAMQ,iBAAiB;OAAIN,aAAauB,KAAK,CAACC,QAAaA,IAAIC,OAAO,GAAGA,WAAW,CAAA;OAAOvB;;AAE3F,QAAM1B,cAAc,MAAM4C,OAAOM,UAAUtB,SAASuB,IAAAA,GAAOrB,cAAAA,CAAAA;AAE3D/B,eAAaC,WAAAA;AAEb,SAAOA,YAAYoD,OAAO,CAACC,MAAMlD,eAAekD,OAAOlD,WAAWmD,YAAY,CAAA;AAChF,GA/B2B;;;ADjC3BC,YAAAA,EACGC,KAAK,CAACC,UAAAA;AACL,MAAIA,OAAO;AACTC,YAAQC,KAAKF,KAAAA;EACf;AACF,CAAA,EACCG,MAAM,CAACC,WAAAA;AACNC,UAAQC,MAAMC,OAAMC,IAAIJ,MAAAA,CAAAA;AACxBH,UAAQC,KAAK,EAAC;AAChB,CAAA;","names":["chalk","readdirSync","path","cwd","pathToFileURL","chalk","ESLint","findUp","dumpMessages","lintResults","colors","severity","lintResult","messages","length","console","log","chalk","gray","filePath","message","line","column","white","ruleId","getRootESLintConfig","configPath","findUp","Error","pathToFileURL","packageLint","fix","default","eslintConfig","href","ignoreFolders","Set","getFiles","dir","ignorePatterns","readdirSync","withFileTypes","flatMap","dirent","res","path","resolve","name","some","pattern","includes","isDirectory","endsWith","engine","ESLint","baseConfig","find","cfg","ignores","lintFiles","cwd","reduce","prev","errorCount","packageLint","then","value","process","exit","catch","reason","console","error","chalk","red"]}
|