@kaynooo/cli-check 0.22.2 → 0.22.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/cli.js +11 -3
- package/dist/errs-cli.js +11 -3
- package/dist/j-cli.js +31 -4
- package/package.json +2 -5
package/dist/cli.js
CHANGED
|
@@ -1202,7 +1202,15 @@ var ZSH_FUNCTION = `__kaynooo_cli_complete() {
|
|
|
1202
1202
|
(( \${#described} )) && _describe -V value described
|
|
1203
1203
|
(( \${#plain} )) && compadd -- "\${plain[@]}"
|
|
1204
1204
|
return 0
|
|
1205
|
-
}
|
|
1205
|
+
}
|
|
1206
|
+
__kaynooo_cli_register() {
|
|
1207
|
+
add-zsh-hook -d precmd __kaynooo_cli_register
|
|
1208
|
+
(( $+functions[compdef] )) || { autoload -Uz compinit && compinit }
|
|
1209
|
+
compdef __kaynooo_cli_complete $__kaynooo_cli_bins
|
|
1210
|
+
}
|
|
1211
|
+
autoload -Uz add-zsh-hook
|
|
1212
|
+
add-zsh-hook precmd __kaynooo_cli_register
|
|
1213
|
+
typeset -gaU __kaynooo_cli_bins`;
|
|
1206
1214
|
function completionScript(shell, bins, header = `# Generated by \`${bins[0]} --completions ${shell}\``) {
|
|
1207
1215
|
if (shell === "fish")
|
|
1208
1216
|
return `${header}
|
|
@@ -1216,7 +1224,7 @@ complete -F __kaynooo_cli_complete ${bins.join(" ")}
|
|
|
1216
1224
|
`;
|
|
1217
1225
|
return `${header}
|
|
1218
1226
|
${ZSH_FUNCTION}
|
|
1219
|
-
|
|
1227
|
+
__kaynooo_cli_bins+=(${bins.join(" ")})
|
|
1220
1228
|
`;
|
|
1221
1229
|
}
|
|
1222
1230
|
|
|
@@ -1686,7 +1694,7 @@ init_style();
|
|
|
1686
1694
|
// ../kit/src/workspace-root.ts
|
|
1687
1695
|
init_user_config();
|
|
1688
1696
|
// package.json
|
|
1689
|
-
var version = "0.22.
|
|
1697
|
+
var version = "0.22.3";
|
|
1690
1698
|
|
|
1691
1699
|
// src/check.ts
|
|
1692
1700
|
import { writeFile as writeFile3 } from "fs/promises";
|
package/dist/errs-cli.js
CHANGED
|
@@ -1202,7 +1202,15 @@ var ZSH_FUNCTION = `__kaynooo_cli_complete() {
|
|
|
1202
1202
|
(( \${#described} )) && _describe -V value described
|
|
1203
1203
|
(( \${#plain} )) && compadd -- "\${plain[@]}"
|
|
1204
1204
|
return 0
|
|
1205
|
-
}
|
|
1205
|
+
}
|
|
1206
|
+
__kaynooo_cli_register() {
|
|
1207
|
+
add-zsh-hook -d precmd __kaynooo_cli_register
|
|
1208
|
+
(( $+functions[compdef] )) || { autoload -Uz compinit && compinit }
|
|
1209
|
+
compdef __kaynooo_cli_complete $__kaynooo_cli_bins
|
|
1210
|
+
}
|
|
1211
|
+
autoload -Uz add-zsh-hook
|
|
1212
|
+
add-zsh-hook precmd __kaynooo_cli_register
|
|
1213
|
+
typeset -gaU __kaynooo_cli_bins`;
|
|
1206
1214
|
function completionScript(shell, bins, header = `# Generated by \`${bins[0]} --completions ${shell}\``) {
|
|
1207
1215
|
if (shell === "fish")
|
|
1208
1216
|
return `${header}
|
|
@@ -1216,7 +1224,7 @@ complete -F __kaynooo_cli_complete ${bins.join(" ")}
|
|
|
1216
1224
|
`;
|
|
1217
1225
|
return `${header}
|
|
1218
1226
|
${ZSH_FUNCTION}
|
|
1219
|
-
|
|
1227
|
+
__kaynooo_cli_bins+=(${bins.join(" ")})
|
|
1220
1228
|
`;
|
|
1221
1229
|
}
|
|
1222
1230
|
|
|
@@ -1686,7 +1694,7 @@ init_style();
|
|
|
1686
1694
|
// ../kit/src/workspace-root.ts
|
|
1687
1695
|
init_user_config();
|
|
1688
1696
|
// package.json
|
|
1689
|
-
var version = "0.22.
|
|
1697
|
+
var version = "0.22.3";
|
|
1690
1698
|
|
|
1691
1699
|
// src/errs.ts
|
|
1692
1700
|
import { relative as relative2 } from "path";
|
package/dist/j-cli.js
CHANGED
|
@@ -1827,7 +1827,15 @@ var ZSH_FUNCTION = `__kaynooo_cli_complete() {
|
|
|
1827
1827
|
(( \${#described} )) && _describe -V value described
|
|
1828
1828
|
(( \${#plain} )) && compadd -- "\${plain[@]}"
|
|
1829
1829
|
return 0
|
|
1830
|
-
}
|
|
1830
|
+
}
|
|
1831
|
+
__kaynooo_cli_register() {
|
|
1832
|
+
add-zsh-hook -d precmd __kaynooo_cli_register
|
|
1833
|
+
(( $+functions[compdef] )) || { autoload -Uz compinit && compinit }
|
|
1834
|
+
compdef __kaynooo_cli_complete $__kaynooo_cli_bins
|
|
1835
|
+
}
|
|
1836
|
+
autoload -Uz add-zsh-hook
|
|
1837
|
+
add-zsh-hook precmd __kaynooo_cli_register
|
|
1838
|
+
typeset -gaU __kaynooo_cli_bins`;
|
|
1831
1839
|
function completionScript(shell, bins, header = `# Generated by \`${bins[0]} --completions ${shell}\``) {
|
|
1832
1840
|
if (shell === "fish")
|
|
1833
1841
|
return `${header}
|
|
@@ -1841,7 +1849,7 @@ complete -F __kaynooo_cli_complete ${bins.join(" ")}
|
|
|
1841
1849
|
`;
|
|
1842
1850
|
return `${header}
|
|
1843
1851
|
${ZSH_FUNCTION}
|
|
1844
|
-
|
|
1852
|
+
__kaynooo_cli_bins+=(${bins.join(" ")})
|
|
1845
1853
|
`;
|
|
1846
1854
|
}
|
|
1847
1855
|
|
|
@@ -2311,7 +2319,7 @@ init_style();
|
|
|
2311
2319
|
// ../kit/src/workspace-root.ts
|
|
2312
2320
|
init_user_config();
|
|
2313
2321
|
// package.json
|
|
2314
|
-
var version = "0.22.
|
|
2322
|
+
var version = "0.22.3";
|
|
2315
2323
|
|
|
2316
2324
|
// src/j.ts
|
|
2317
2325
|
import process26 from "process";
|
|
@@ -3011,6 +3019,8 @@ var BLANKS = /\s+/;
|
|
|
3011
3019
|
var TRAILING_SLASHES = /\/+$/;
|
|
3012
3020
|
var VERSION_SUFFIX = /@.*/;
|
|
3013
3021
|
var LEADING_HASHES = /^#*/;
|
|
3022
|
+
var INCLUDE = /^(?:-|s)?include[ \t]+([^#]+)/;
|
|
3023
|
+
var GLOB_CHARS2 = /[*?[]/;
|
|
3014
3024
|
var installed = new Map;
|
|
3015
3025
|
function has(tool) {
|
|
3016
3026
|
if (!installed.has(tool))
|
|
@@ -3119,11 +3129,28 @@ function show(source, target) {
|
|
|
3119
3129
|
return lines.slice(start, end).join(`
|
|
3120
3130
|
`).trimEnd();
|
|
3121
3131
|
}
|
|
3132
|
+
function withIncludes(source, dir, seen) {
|
|
3133
|
+
return source.split(`
|
|
3134
|
+
`).map((line) => {
|
|
3135
|
+
const match = INCLUDE.exec(line);
|
|
3136
|
+
if (!match)
|
|
3137
|
+
return line;
|
|
3138
|
+
const paths = match[1].trim().split(BLANKS).flatMap((path) => GLOB_CHARS2.test(path) ? [...new Bun.Glob(path).scanSync({ cwd: dir })].sort() : [path]);
|
|
3139
|
+
const files = paths.map((path) => resolvePath(dir, path)).filter((file) => !seen.has(file) && existsSync5(file));
|
|
3140
|
+
return files.map((file) => {
|
|
3141
|
+
seen.add(file);
|
|
3142
|
+
return withIncludes(readFileSync8(file, "utf-8"), dir, seen);
|
|
3143
|
+
}).join(`
|
|
3144
|
+
`);
|
|
3145
|
+
}).join(`
|
|
3146
|
+
`);
|
|
3147
|
+
}
|
|
3122
3148
|
function make(dir) {
|
|
3123
3149
|
const file = MAKEFILES.find((name) => existsSync5(join11(dir, name)));
|
|
3124
3150
|
if (file === undefined)
|
|
3125
3151
|
return [];
|
|
3126
|
-
const
|
|
3152
|
+
const path = resolvePath(dir, file);
|
|
3153
|
+
const source = withIncludes(readFileSync8(path, "utf-8"), dir, new Set([path]));
|
|
3127
3154
|
return build({ kind: "make", tag: "make", runner: ["make"], separated: false, dir }, targets2(source).map((target) => ({ ...target, body: show(source, target.name) })));
|
|
3128
3155
|
}
|
|
3129
3156
|
function manager(dir, manifest) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaynooo/cli-check",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.22.
|
|
4
|
+
"version": "0.22.3",
|
|
5
5
|
"description": "check and errs: run a repo's check, typecheck, lint, format check and test steps or, with --fix, 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",
|
|
@@ -22,9 +22,6 @@
|
|
|
22
22
|
"engines": {
|
|
23
23
|
"bun": ">=1.4.3"
|
|
24
24
|
},
|
|
25
|
-
"publishConfig": {
|
|
26
|
-
"registry": "https://git.kaynooo.fr/api/packages/kaynooo/npm/"
|
|
27
|
-
},
|
|
28
25
|
"scripts": {
|
|
29
26
|
"build": "$npm_execpath build src/cli.ts src/errs-cli.ts src/j-cli.ts --target bun --outdir dist && $npm_execpath ../../scripts/shell-shebang.ts",
|
|
30
27
|
"check": "$npm_execpath src/cli.ts",
|
|
@@ -32,6 +29,6 @@
|
|
|
32
29
|
"j": "$npm_execpath src/j-cli.ts"
|
|
33
30
|
},
|
|
34
31
|
"devDependencies": {
|
|
35
|
-
"@kaynooo/cli-kit": "0.
|
|
32
|
+
"@kaynooo/cli-kit": "0.48.0"
|
|
36
33
|
}
|
|
37
34
|
}
|