@crustjs/core 0.4.1 → 0.5.1
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/tooling.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dt as CommandSnapshot, N as FlagEnvironment, Ot as FlagSnapshot, P as parseFlagValues, Pt as ExtensionId, g as DeclaredDefault, m as CommandSection } from "./context-9ee4iljp.js";
|
|
2
2
|
import { BUILD_OUT_DIR_ENV } from "@crustjs/utils/artifacts";
|
|
3
3
|
//#region src/command/invocation.d.ts
|
|
4
4
|
/**
|
|
@@ -10,7 +10,9 @@ import { BUILD_OUT_DIR_ENV } from "@crustjs/utils/artifacts";
|
|
|
10
10
|
* without dispatching a Command Action. In-process callers use `Crust.snapshot()`.
|
|
11
11
|
*
|
|
12
12
|
* Only source entries run by `crust build` honor it: finished Bun/Node bundles carry
|
|
13
|
-
* `process.env.CRUST_INTERNAL_BUILD === "1"` as a literal and compile the protocol out
|
|
13
|
+
* `process.env.CRUST_INTERNAL_BUILD === "1"` as a literal and compile the protocol out;
|
|
14
|
+
* packaged Deno bundles set the `isPackagedBuild()` marker and skip it without
|
|
15
|
+
* reading the environment.
|
|
14
16
|
*/
|
|
15
17
|
export declare const SNAPSHOT_PATH_ENV = "CRUST_INTERNAL_SNAPSHOT_PATH";
|
|
16
18
|
//#endregion
|
|
@@ -167,4 +169,4 @@ export declare function visibleSectionsFor(snapshot: CommandSnapshot, consumer:
|
|
|
167
169
|
readonly sections: readonly CommandSection[];
|
|
168
170
|
}[];
|
|
169
171
|
//#endregion
|
|
170
|
-
export { BUILD_OUT_DIR_ENV, type CommandDocumentation, type CommandSnapshot, type DocumentationArg, type DocumentationFlag, type UsageSegment };
|
|
172
|
+
export { BUILD_OUT_DIR_ENV, type CommandDocumentation, type CommandSnapshot, type DocumentationArg, type DocumentationFlag, type FlagEnvironment, type UsageSegment, parseFlagValues };
|
package/dist/tooling.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { s as parseFlagValues, t as SNAPSHOT_PATH_ENV, v as isListed, x as visibleSectionsFor, y as sectionsFor } from "./invocation-CD299Gic.js";
|
|
2
2
|
import { BUILD_OUT_DIR_ENV } from "@crustjs/utils/artifacts";
|
|
3
3
|
//#region src/command/documentation.ts
|
|
4
4
|
function isNonFiniteNumber(value) {
|
|
@@ -100,4 +100,4 @@ function buildCommandDocumentation(command, path = [command.meta.name]) {
|
|
|
100
100
|
return buildNode(command, path);
|
|
101
101
|
}
|
|
102
102
|
//#endregion
|
|
103
|
-
export { BUILD_OUT_DIR_ENV, SNAPSHOT_PATH_ENV, buildCommandDocumentation, formatDefault, formatDescription, isListed, sectionsFor, visibleSectionsFor };
|
|
103
|
+
export { BUILD_OUT_DIR_ENV, SNAPSHOT_PATH_ENV, buildCommandDocumentation, formatDefault, formatDescription, isListed, parseFlagValues, sectionsFor, visibleSectionsFor };
|
package/package.json
CHANGED
|
@@ -1,71 +1,69 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
}
|
|
2
|
+
"name": "@crustjs/core",
|
|
3
|
+
"version": "0.5.1",
|
|
4
|
+
"description": "Core library for the Crust CLI framework",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"author": "chenxin-yan",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/chenxin-yan/crust.git",
|
|
12
|
+
"directory": "packages/core"
|
|
13
|
+
},
|
|
14
|
+
"homepage": "https://crustjs.com",
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/chenxin-yan/crust/issues"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"cli",
|
|
20
|
+
"command",
|
|
21
|
+
"framework",
|
|
22
|
+
"parser",
|
|
23
|
+
"bun",
|
|
24
|
+
"typescript"
|
|
25
|
+
],
|
|
26
|
+
"files": [
|
|
27
|
+
"dist"
|
|
28
|
+
],
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"exports": {
|
|
31
|
+
".": {
|
|
32
|
+
"types": "./dist/index.d.ts",
|
|
33
|
+
"import": "./dist/index.js"
|
|
34
|
+
},
|
|
35
|
+
"./tooling": {
|
|
36
|
+
"types": "./dist/tooling.d.ts",
|
|
37
|
+
"import": "./dist/tooling.js"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"publishConfig": {
|
|
41
|
+
"access": "public"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@crustjs/utils": "^0.2.1"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@crustjs/config": "0.0.0",
|
|
48
|
+
"vite-plus": "1.0.0"
|
|
49
|
+
},
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"typescript": "^7.0.0"
|
|
52
|
+
},
|
|
53
|
+
"peerDependenciesMeta": {
|
|
54
|
+
"typescript": {
|
|
55
|
+
"optional": true
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"engines": {
|
|
59
|
+
"bun": ">=1.4.0",
|
|
60
|
+
"node": ">=24",
|
|
61
|
+
"deno": ">=2.8"
|
|
62
|
+
},
|
|
63
|
+
"scripts": {
|
|
64
|
+
"build": "vp run build:task",
|
|
65
|
+
"dev": "vp pack --watch",
|
|
66
|
+
"check:types": "vp run check:types:task",
|
|
67
|
+
"test": "vp run test:task"
|
|
68
|
+
}
|
|
69
|
+
}
|