@codefast/cli 0.12.0 → 0.14.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/CHANGELOG.md +65 -0
- package/README.md +120 -16
- package/dist/arrange/domain/ast/translator.js +42 -28
- package/dist/arrange/simplify/process-file.d.ts +1 -1
- package/dist/audit/assertions/cli-result.d.ts +13 -0
- package/dist/audit/assertions/cli-result.js +22 -0
- package/dist/audit/assertions/cli-schema.d.ts +18 -0
- package/dist/audit/assertions/cli-schema.js +12 -0
- package/dist/audit/assertions/domain/double-assertion.d.ts +20 -0
- package/dist/audit/assertions/domain/double-assertion.js +122 -0
- package/dist/audit/assertions/output.d.ts +7 -0
- package/dist/audit/assertions/output.js +21 -0
- package/dist/audit/assertions/prepare.d.ts +16 -0
- package/dist/audit/assertions/prepare.js +12 -0
- package/dist/audit/assertions/run.d.ts +14 -0
- package/dist/audit/assertions/run.js +40 -0
- package/dist/audit/command.js +46 -1
- package/dist/audit/comments/domain/comment-content.d.ts +12 -0
- package/dist/audit/comments/domain/comment-content.js +17 -4
- package/dist/audit/display-names/domain/display-names.js +1 -9
- package/dist/audit/domain/types.d.ts +86 -0
- package/dist/audit/imports/domain/import-policy.js +4 -18
- package/dist/audit/layers/cli-result.d.ts +13 -0
- package/dist/audit/layers/cli-result.js +22 -0
- package/dist/audit/layers/cli-schema.d.ts +29 -0
- package/dist/audit/layers/cli-schema.js +17 -0
- package/dist/audit/layers/domain/layering.d.ts +46 -0
- package/dist/audit/layers/domain/layering.js +191 -0
- package/dist/audit/layers/output.d.ts +7 -0
- package/dist/audit/layers/output.js +21 -0
- package/dist/audit/layers/prepare.d.ts +25 -0
- package/dist/audit/layers/prepare.js +66 -0
- package/dist/audit/layers/run.d.ts +19 -0
- package/dist/audit/layers/run.js +62 -0
- package/dist/audit/prepare.d.ts +13 -1
- package/dist/audit/prepare.js +16 -1
- package/dist/audit/publish/cli-result.d.ts +1 -1
- package/dist/audit/publish/cli-result.js +6 -3
- package/dist/audit/publish/domain/stylesheet-sources.d.ts +22 -0
- package/dist/audit/publish/domain/stylesheet-sources.js +64 -0
- package/dist/audit/publish/output.js +12 -3
- package/dist/audit/publish/run.d.ts +2 -1
- package/dist/audit/publish/run.js +30 -1
- package/dist/audit/publish/shipped-files.d.ts +21 -0
- package/dist/audit/publish/shipped-files.js +36 -0
- package/dist/core/config/schema.d.ts +13 -0
- package/dist/core/config/schema.js +14 -0
- package/dist/core/filesystem/filesystem.d.ts +3 -4
- package/dist/core/filesystem/node.js +1 -7
- package/dist/core/oxc-node.d.ts +32 -0
- package/dist/core/oxc-node.js +25 -0
- package/dist/core/source-position.d.ts +15 -0
- package/dist/core/source-position.js +26 -0
- package/dist/mirror/dist-filesystem-node.js +4 -14
- package/dist/pack-slim/run.js +1 -1
- package/dist/tag/cli-result.d.ts +3 -0
- package/dist/tag/cli-result.js +8 -2
- package/dist/tag/domain/types.d.ts +15 -0
- package/dist/tag/domain/version-summary.d.ts +5 -2
- package/dist/tag/output.js +13 -6
- package/dist/tag/run.js +2 -0
- package/dist/tag/writer/since-writer.d.ts +5 -0
- package/dist/tag/writer/since-writer.js +43 -13
- package/package.json +4 -4
- package/dist/mirror/domain/dirent-guard.d.ts +0 -10
- package/dist/mirror/domain/dirent-guard.js +0 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codefast/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Developer CLI for the Codefast monorepo (arrange, audit, mirror, pack-slim, tag)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -54,13 +54,13 @@
|
|
|
54
54
|
"@microsoft/tsdoc": "^0.17.0",
|
|
55
55
|
"commander": "^15.0.0",
|
|
56
56
|
"jiti": "^2.7.0",
|
|
57
|
-
"oxc-parser": "^0.
|
|
57
|
+
"oxc-parser": "^0.151.0",
|
|
58
58
|
"picomatch": "^4.0.7",
|
|
59
59
|
"yaml": "^2.9.1",
|
|
60
60
|
"zod": "^4.6.5"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"typescript": "
|
|
63
|
+
"typescript": ">=7.0.0"
|
|
64
64
|
},
|
|
65
65
|
"peerDependenciesMeta": {
|
|
66
66
|
"typescript": {
|
|
@@ -68,6 +68,6 @@
|
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
"engines": {
|
|
71
|
-
"node": ">=
|
|
71
|
+
"node": ">=24.0.0"
|
|
72
72
|
}
|
|
73
73
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { DirectoryEntry } from "#core/filesystem/filesystem";
|
|
2
|
-
/**
|
|
3
|
-
* Narrow `fs.promises.readdir` overload result to `Dirent[]` when `withFileTypes: true`.
|
|
4
|
-
* Accepts both historical checks (`isFile` / `isDirectory`) in one guard.
|
|
5
|
-
* Returning `true` for an empty array is intentional: callers treat empty lists
|
|
6
|
-
* the same regardless of the element type, so `[]` is safely accepted as `Dirent[]`.
|
|
7
|
-
*
|
|
8
|
-
* @since 0.3.16-canary.0
|
|
9
|
-
*/
|
|
10
|
-
export declare function isDirentList(x: Array<string> | Array<DirectoryEntry>): x is Array<DirectoryEntry>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Narrow `fs.promises.readdir` overload result to `Dirent[]` when `withFileTypes: true`.
|
|
3
|
-
* Accepts both historical checks (`isFile` / `isDirectory`) in one guard.
|
|
4
|
-
* Returning `true` for an empty array is intentional: callers treat empty lists
|
|
5
|
-
* the same regardless of the element type, so `[]` is safely accepted as `Dirent[]`.
|
|
6
|
-
*
|
|
7
|
-
* @since 0.3.16-canary.0
|
|
8
|
-
*/
|
|
9
|
-
export function isDirentList(x) {
|
|
10
|
-
if (x.length === 0) {
|
|
11
|
-
return true;
|
|
12
|
-
}
|
|
13
|
-
const first = x[0];
|
|
14
|
-
return typeof first === "object" && first !== null && "isFile" in first && "isDirectory" in first;
|
|
15
|
-
}
|