@hpx7/delta-pack-cli 0.1.4 → 0.2.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/codegen/csharp.d.ts +2 -0
- package/dist/codegen/index.d.ts +6 -0
- package/dist/codegen/index.js +11132 -0
- package/dist/codegen/typescript.d.ts +2 -0
- package/dist/commands/decode.d.ts +2 -0
- package/dist/commands/decodeDiff.d.ts +2 -0
- package/dist/commands/encode.d.ts +2 -0
- package/dist/commands/encodeDiff.d.ts +2 -0
- package/dist/commands/generate.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1170 -351
- package/dist/utils/errors.d.ts +3 -0
- package/dist/utils/io.d.ts +3 -0
- package/dist/utils/schema.d.ts +3 -0
- package/package.json +16 -4
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type NamedType, type ObjectType, type UnionType } from "@hpx7/delta-pack";
|
|
2
|
+
export declare function loadSchema(path: string): Promise<Record<string, NamedType>>;
|
|
3
|
+
export declare function getRootType(schema: Record<string, NamedType>, typeName: string): ObjectType | UnionType;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hpx7/delta-pack-cli",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "hpx7",
|
|
6
6
|
"repository": {
|
|
@@ -12,17 +12,29 @@
|
|
|
12
12
|
"bin": {
|
|
13
13
|
"delta-pack": "dist/index.js"
|
|
14
14
|
},
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"default": "./dist/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./codegen": {
|
|
21
|
+
"types": "./dist/codegen/index.d.ts",
|
|
22
|
+
"default": "./dist/codegen/index.js"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
15
25
|
"files": [
|
|
16
26
|
"dist"
|
|
17
27
|
],
|
|
18
28
|
"scripts": {
|
|
19
|
-
"build": "bun build src/index.ts --outdir dist --target node",
|
|
29
|
+
"build": "bun build src/index.ts src/codegen/index.ts --outdir dist --target node && tsc",
|
|
20
30
|
"test": "bun test"
|
|
21
31
|
},
|
|
22
32
|
"dependencies": {
|
|
23
|
-
"@hpx7/delta-pack": "^0.2.
|
|
33
|
+
"@hpx7/delta-pack": "^0.2.5",
|
|
34
|
+
"yaml": "^2.3.4"
|
|
24
35
|
},
|
|
25
36
|
"devDependencies": {
|
|
26
|
-
"@types/bun": "latest"
|
|
37
|
+
"@types/bun": "latest",
|
|
38
|
+
"typescript": "^5.0.0"
|
|
27
39
|
}
|
|
28
40
|
}
|