@alint-js/cli 0.0.11 → 0.0.13
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/bin/index.mjs
CHANGED
|
@@ -13,6 +13,9 @@ import { relative as relative$1 } from "node:path";
|
|
|
13
13
|
import Gitignore from "gitignore-fs";
|
|
14
14
|
import { Minimatch, minimatch } from "minimatch";
|
|
15
15
|
import { errorMessageFrom as errorMessageFrom$1 } from "@moeru/std";
|
|
16
|
+
//#region package.json
|
|
17
|
+
var version = "0.0.13";
|
|
18
|
+
//#endregion
|
|
16
19
|
//#region src/cli/commands/command.ts
|
|
17
20
|
function defineCommand(node) {
|
|
18
21
|
return node;
|
|
@@ -2082,6 +2085,10 @@ const commandTree = [
|
|
|
2082
2085
|
//#endregion
|
|
2083
2086
|
//#region src/cli/cli.ts
|
|
2084
2087
|
async function executeCli(argv, io) {
|
|
2088
|
+
if (argv.includes("--version") || argv.includes("-v")) {
|
|
2089
|
+
io.stdout.write(`${version}\n`);
|
|
2090
|
+
return 0;
|
|
2091
|
+
}
|
|
2085
2092
|
const cli = cac("alint");
|
|
2086
2093
|
const setupNoInteractive = argv.includes("-N") || argv.includes("--no-interactive");
|
|
2087
2094
|
const globalOptions = { outputLanguage: parseStringOption(argv, ["--lang", "-l"]) };
|
|
@@ -2090,7 +2097,7 @@ async function executeCli(argv, io) {
|
|
|
2090
2097
|
pendingResult = result;
|
|
2091
2098
|
return result;
|
|
2092
2099
|
};
|
|
2093
|
-
cli.option("--no-cache", "Disable cache for this run").option("--cache-location <path>", "Path to the alint cache file or directory").option("--config <path>", "Path to alint config file").option("--file-concurrency <count>", "Number of files to lint concurrently").option("--format <format>", "Reporter format", { default: "stylish" }).option("--model <model>", "Force a model override").option("-l, --lang <language>", "Ask model-backed rules to write diagnostics in this language").option("--progress", "Show run progress").option("--rule-concurrency <count>", "Number of rules to run concurrently within a file").option("--no-stats", "Do not record run stats for this run").option("--timeout-ms <ms>", "Rule execution timeout in milliseconds").help();
|
|
2100
|
+
cli.option("--no-cache", "Disable cache for this run").option("--cache-location <path>", "Path to the alint cache file or directory").option("--config <path>", "Path to alint config file").option("--file-concurrency <count>", "Number of files to lint concurrently").option("--format <format>", "Reporter format", { default: "stylish" }).option("--model <model>", "Force a model override").option("-l, --lang <language>", "Ask model-backed rules to write diagnostics in this language").option("--progress", "Show run progress").option("--rule-concurrency <count>", "Number of rules to run concurrently within a file").option("--no-stats", "Do not record run stats for this run").option("--timeout-ms <ms>", "Rule execution timeout in milliseconds").version(version).help();
|
|
2094
2101
|
registerCommandTree(cli, commandTree, {
|
|
2095
2102
|
globalOptions,
|
|
2096
2103
|
interceptConsoleOutput,
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as formatJson, n as formatDiagnostics, r as formatStylish, t as executeCli } from "./cli-
|
|
1
|
+
import { i as formatJson, n as formatDiagnostics, r as formatStylish, t as executeCli } from "./cli-D0mteEgn.mjs";
|
|
2
2
|
export { executeCli, formatDiagnostics, formatJson, formatStylish };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alint-js/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.13",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.mts",
|
|
@@ -25,11 +25,15 @@
|
|
|
25
25
|
"pathe": "^2.0.3",
|
|
26
26
|
"table": "^6.9.0",
|
|
27
27
|
"tinyrainbow": "^3.1.0",
|
|
28
|
-
"@alint-js/
|
|
29
|
-
"@alint-js/
|
|
28
|
+
"@alint-js/core": "0.0.13",
|
|
29
|
+
"@alint-js/config": "0.0.13"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
+
"@pnpm/find-workspace-dir": "^1000.1.5",
|
|
32
33
|
"@types/node": "^26.0.1",
|
|
34
|
+
"local-pkg": "^1.2.1",
|
|
35
|
+
"mlly": "^1.8.2",
|
|
36
|
+
"tinyexec": "^1.2.4",
|
|
33
37
|
"tsdown": "^0.22.3",
|
|
34
38
|
"typescript": "^6.0.3",
|
|
35
39
|
"vitest": "^4.1.9"
|
|
@@ -37,6 +41,7 @@
|
|
|
37
41
|
"scripts": {
|
|
38
42
|
"alint": "node ./dist/bin/index.mjs",
|
|
39
43
|
"build": "tsdown",
|
|
44
|
+
"build:binary": "tsdown --config tsdown.binary.config.ts --config-loader unrun",
|
|
40
45
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
41
46
|
"test": "vitest run --config vitest.config.ts"
|
|
42
47
|
}
|