@kaynooo/cli-check 0.12.1 → 0.13.0
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/cli.js +2 -2
- package/dist/errs-cli.js +2 -2
- package/dist/fix-cli.js +2 -2
- package/dist/j-cli.js +2 -2
- package/package.json +7 -3
package/dist/cli.js
CHANGED
|
@@ -949,7 +949,7 @@ function reportThrown(prefix, error, redact = (text) => text, json = false) {
|
|
|
949
949
|
const help = error instanceof UsageError ? `run ${prefix} --help for its options` : undefined;
|
|
950
950
|
const named = error instanceof Error && !(error instanceof Exit) && error.name !== "Error" ? `${error.name}: ${error.message}` : undefined;
|
|
951
951
|
const cause = error instanceof Error && error.cause instanceof Error ? redact(error.cause.message) : undefined;
|
|
952
|
-
if (error instanceof
|
|
952
|
+
if (error instanceof Exit && error.code === 2)
|
|
953
953
|
noteUsageError(error.message);
|
|
954
954
|
const report = json ? printJsonError : (message, hint, causeText) => printError(prefix, message, hint, causeText);
|
|
955
955
|
report(redact(named ?? (error instanceof Error ? error.message : String(error))), error instanceof Exit ? error.hint ?? help : undefined, cause);
|
|
@@ -1050,7 +1050,7 @@ var {Glob } = globalThis.Bun;
|
|
|
1050
1050
|
var SESSION_FILES = new Glob("*.json");
|
|
1051
1051
|
var ACCOUNT_DIRS = new Glob("*/sessions");
|
|
1052
1052
|
// package.json
|
|
1053
|
-
var version = "0.
|
|
1053
|
+
var version = "0.13.0";
|
|
1054
1054
|
|
|
1055
1055
|
// src/check.ts
|
|
1056
1056
|
import { writeFile as writeFile3 } from "fs/promises";
|
package/dist/errs-cli.js
CHANGED
|
@@ -949,7 +949,7 @@ function reportThrown(prefix, error, redact = (text) => text, json = false) {
|
|
|
949
949
|
const help = error instanceof UsageError ? `run ${prefix} --help for its options` : undefined;
|
|
950
950
|
const named = error instanceof Error && !(error instanceof Exit) && error.name !== "Error" ? `${error.name}: ${error.message}` : undefined;
|
|
951
951
|
const cause = error instanceof Error && error.cause instanceof Error ? redact(error.cause.message) : undefined;
|
|
952
|
-
if (error instanceof
|
|
952
|
+
if (error instanceof Exit && error.code === 2)
|
|
953
953
|
noteUsageError(error.message);
|
|
954
954
|
const report = json ? printJsonError : (message, hint, causeText) => printError(prefix, message, hint, causeText);
|
|
955
955
|
report(redact(named ?? (error instanceof Error ? error.message : String(error))), error instanceof Exit ? error.hint ?? help : undefined, cause);
|
|
@@ -1050,7 +1050,7 @@ var {Glob } = globalThis.Bun;
|
|
|
1050
1050
|
var SESSION_FILES = new Glob("*.json");
|
|
1051
1051
|
var ACCOUNT_DIRS = new Glob("*/sessions");
|
|
1052
1052
|
// package.json
|
|
1053
|
-
var version = "0.
|
|
1053
|
+
var version = "0.13.0";
|
|
1054
1054
|
|
|
1055
1055
|
// src/errs.ts
|
|
1056
1056
|
import { relative as relative2 } from "path";
|
package/dist/fix-cli.js
CHANGED
|
@@ -949,7 +949,7 @@ function reportThrown(prefix, error, redact = (text) => text, json = false) {
|
|
|
949
949
|
const help = error instanceof UsageError ? `run ${prefix} --help for its options` : undefined;
|
|
950
950
|
const named = error instanceof Error && !(error instanceof Exit) && error.name !== "Error" ? `${error.name}: ${error.message}` : undefined;
|
|
951
951
|
const cause = error instanceof Error && error.cause instanceof Error ? redact(error.cause.message) : undefined;
|
|
952
|
-
if (error instanceof
|
|
952
|
+
if (error instanceof Exit && error.code === 2)
|
|
953
953
|
noteUsageError(error.message);
|
|
954
954
|
const report = json ? printJsonError : (message, hint, causeText) => printError(prefix, message, hint, causeText);
|
|
955
955
|
report(redact(named ?? (error instanceof Error ? error.message : String(error))), error instanceof Exit ? error.hint ?? help : undefined, cause);
|
|
@@ -1050,7 +1050,7 @@ var {Glob } = globalThis.Bun;
|
|
|
1050
1050
|
var SESSION_FILES = new Glob("*.json");
|
|
1051
1051
|
var ACCOUNT_DIRS = new Glob("*/sessions");
|
|
1052
1052
|
// package.json
|
|
1053
|
-
var version = "0.
|
|
1053
|
+
var version = "0.13.0";
|
|
1054
1054
|
|
|
1055
1055
|
// src/fix.ts
|
|
1056
1056
|
import { existsSync as existsSync2, statSync } from "fs";
|
package/dist/j-cli.js
CHANGED
|
@@ -949,7 +949,7 @@ function reportThrown(prefix, error, redact = (text) => text, json = false) {
|
|
|
949
949
|
const help = error instanceof UsageError ? `run ${prefix} --help for its options` : undefined;
|
|
950
950
|
const named = error instanceof Error && !(error instanceof Exit) && error.name !== "Error" ? `${error.name}: ${error.message}` : undefined;
|
|
951
951
|
const cause = error instanceof Error && error.cause instanceof Error ? redact(error.cause.message) : undefined;
|
|
952
|
-
if (error instanceof
|
|
952
|
+
if (error instanceof Exit && error.code === 2)
|
|
953
953
|
noteUsageError(error.message);
|
|
954
954
|
const report = json ? printJsonError : (message, hint, causeText) => printError(prefix, message, hint, causeText);
|
|
955
955
|
report(redact(named ?? (error instanceof Error ? error.message : String(error))), error instanceof Exit ? error.hint ?? help : undefined, cause);
|
|
@@ -1050,7 +1050,7 @@ var {Glob } = globalThis.Bun;
|
|
|
1050
1050
|
var SESSION_FILES = new Glob("*.json");
|
|
1051
1051
|
var ACCOUNT_DIRS = new Glob("*/sessions");
|
|
1052
1052
|
// package.json
|
|
1053
|
-
var version = "0.
|
|
1053
|
+
var version = "0.13.0";
|
|
1054
1054
|
|
|
1055
1055
|
// src/j.ts
|
|
1056
1056
|
import process15 from "process";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaynooo/cli-check",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.13.0",
|
|
5
5
|
"description": "check, fix and errs: run a repo's check, typecheck, lint and test steps or its fixers, inside its docker compose service when one mounts the folder, showing only what failed with each full output saved to a file, and turn tsc, eslint, bun test, vitest, playwright, phpunit, phpstan and php-cs-fixer logs into file:line:col errors.",
|
|
6
6
|
"author": "Kaynooo <contact@kaynooo.fr>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -27,9 +27,13 @@
|
|
|
27
27
|
"registry": "https://git.kaynooo.fr/api/packages/kaynooo/npm/"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
|
-
"build": "$npm_execpath build src/cli.ts src/fix-cli.ts src/errs-cli.ts src/j-cli.ts --target bun --outdir dist"
|
|
30
|
+
"build": "$npm_execpath build src/cli.ts src/fix-cli.ts src/errs-cli.ts src/j-cli.ts --target bun --outdir dist",
|
|
31
|
+
"check": "$npm_execpath src/cli.ts",
|
|
32
|
+
"fix": "$npm_execpath src/fix-cli.ts",
|
|
33
|
+
"errs": "$npm_execpath src/errs-cli.ts",
|
|
34
|
+
"j": "$npm_execpath src/j-cli.ts"
|
|
31
35
|
},
|
|
32
36
|
"devDependencies": {
|
|
33
|
-
"@kaynooo/cli-kit": "0.21.
|
|
37
|
+
"@kaynooo/cli-kit": "0.21.1"
|
|
34
38
|
}
|
|
35
39
|
}
|