zod-aot 0.0.3 → 0.0.5
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/README.md +102 -54
- package/dist/cli/commands/check.d.ts +6 -0
- package/dist/cli/commands/check.d.ts.map +1 -0
- package/dist/cli/commands/check.js +97 -0
- package/dist/cli/commands/check.js.map +1 -0
- package/dist/cli/commands/generate.d.ts +7 -0
- package/dist/cli/commands/generate.d.ts.map +1 -0
- package/dist/cli/commands/generate.js +99 -0
- package/dist/cli/commands/generate.js.map +1 -0
- package/dist/cli/discovery.d.ts +11 -0
- package/dist/cli/discovery.d.ts.map +1 -0
- package/dist/cli/discovery.js +17 -0
- package/dist/cli/discovery.js.map +1 -0
- package/dist/cli/emitter.d.ts +19 -0
- package/dist/cli/emitter.d.ts.map +1 -0
- package/dist/cli/emitter.js +77 -0
- package/dist/cli/emitter.js.map +1 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +111 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/loader.d.ts +11 -0
- package/dist/cli/loader.d.ts.map +1 -0
- package/dist/cli/loader.js +52 -0
- package/dist/cli/loader.js.map +1 -0
- package/dist/cli/logger.d.ts +8 -0
- package/dist/cli/logger.d.ts.map +1 -0
- package/dist/cli/logger.js +33 -0
- package/dist/cli/logger.js.map +1 -0
- package/dist/codegen/context.d.ts +5 -0
- package/dist/codegen/context.d.ts.map +1 -1
- package/dist/codegen/context.js +11 -0
- package/dist/codegen/context.js.map +1 -1
- package/dist/compile.d.ts +14 -0
- package/dist/compile.d.ts.map +1 -0
- package/dist/compile.js +21 -0
- package/dist/compile.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/unplugin/esbuild.d.ts +3 -0
- package/dist/unplugin/esbuild.d.ts.map +1 -0
- package/dist/unplugin/esbuild.js +3 -0
- package/dist/unplugin/esbuild.js.map +1 -0
- package/dist/unplugin/index.d.ts +4 -0
- package/dist/unplugin/index.d.ts.map +1 -0
- package/dist/unplugin/index.js +19 -0
- package/dist/unplugin/index.js.map +1 -0
- package/dist/unplugin/rollup.d.ts +3 -0
- package/dist/unplugin/rollup.d.ts.map +1 -0
- package/dist/unplugin/rollup.js +3 -0
- package/dist/unplugin/rollup.js.map +1 -0
- package/dist/unplugin/transform.d.ts +26 -0
- package/dist/unplugin/transform.d.ts.map +1 -0
- package/dist/unplugin/transform.js +134 -0
- package/dist/unplugin/transform.js.map +1 -0
- package/dist/unplugin/types.d.ts +7 -0
- package/dist/unplugin/types.d.ts.map +1 -0
- package/dist/unplugin/types.js +2 -0
- package/dist/unplugin/types.js.map +1 -0
- package/dist/unplugin/vite.d.ts +3 -0
- package/dist/unplugin/vite.d.ts.map +1 -0
- package/dist/unplugin/vite.js +3 -0
- package/dist/unplugin/vite.js.map +1 -0
- package/dist/unplugin/webpack.d.ts +3 -0
- package/dist/unplugin/webpack.d.ts.map +1 -0
- package/dist/unplugin/webpack.js +3 -0
- package/dist/unplugin/webpack.js.map +1 -0
- package/package.json +39 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vite.d.ts","sourceRoot":"","sources":["../../src/unplugin/vite.ts"],"names":[],"mappings":";AAEA,wBAA6B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vite.js","sourceRoot":"","sources":["../../src/unplugin/vite.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,eAAe,QAAQ,CAAC,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webpack.d.ts","sourceRoot":"","sources":["../../src/unplugin/webpack.ts"],"names":[],"mappings":";AAEA,wBAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webpack.js","sourceRoot":"","sources":["../../src/unplugin/webpack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,eAAe,QAAQ,CAAC,OAAO,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zod-aot",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "Compile Zod schemas into zero-overhead validation functions at build time",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -18,8 +18,12 @@
|
|
|
18
18
|
"url": "https://github.com/wakita181009/zod-aot.git",
|
|
19
19
|
"directory": "packages/zod-aot"
|
|
20
20
|
},
|
|
21
|
+
"bin": {
|
|
22
|
+
"zod-aot": "./dist/cli/index.js"
|
|
23
|
+
},
|
|
21
24
|
"files": [
|
|
22
|
-
"dist"
|
|
25
|
+
"dist",
|
|
26
|
+
"LICENSE"
|
|
23
27
|
],
|
|
24
28
|
"imports": {
|
|
25
29
|
"#src/*": "./src/*"
|
|
@@ -29,14 +33,45 @@
|
|
|
29
33
|
"types": "./dist/index.d.ts",
|
|
30
34
|
"import": "./dist/index.js",
|
|
31
35
|
"default": "./dist/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./vite": {
|
|
38
|
+
"types": "./dist/unplugin/vite.d.ts",
|
|
39
|
+
"import": "./dist/unplugin/vite.js",
|
|
40
|
+
"default": "./dist/unplugin/vite.js"
|
|
41
|
+
},
|
|
42
|
+
"./webpack": {
|
|
43
|
+
"types": "./dist/unplugin/webpack.d.ts",
|
|
44
|
+
"import": "./dist/unplugin/webpack.js",
|
|
45
|
+
"default": "./dist/unplugin/webpack.js"
|
|
46
|
+
},
|
|
47
|
+
"./esbuild": {
|
|
48
|
+
"types": "./dist/unplugin/esbuild.d.ts",
|
|
49
|
+
"import": "./dist/unplugin/esbuild.js",
|
|
50
|
+
"default": "./dist/unplugin/esbuild.js"
|
|
51
|
+
},
|
|
52
|
+
"./rollup": {
|
|
53
|
+
"types": "./dist/unplugin/rollup.d.ts",
|
|
54
|
+
"import": "./dist/unplugin/rollup.js",
|
|
55
|
+
"default": "./dist/unplugin/rollup.js"
|
|
32
56
|
}
|
|
33
57
|
},
|
|
58
|
+
"dependencies": {
|
|
59
|
+
"unplugin": "^3.0.0"
|
|
60
|
+
},
|
|
34
61
|
"peerDependencies": {
|
|
62
|
+
"tsx": "^4.0.0",
|
|
35
63
|
"zod": "^4.0.0"
|
|
36
64
|
},
|
|
65
|
+
"peerDependenciesMeta": {
|
|
66
|
+
"tsx": {
|
|
67
|
+
"optional": true
|
|
68
|
+
}
|
|
69
|
+
},
|
|
37
70
|
"devDependencies": {
|
|
38
|
-
"
|
|
39
|
-
"
|
|
71
|
+
"@types/node": "^25.0.0",
|
|
72
|
+
"tsx": "^4.21.0",
|
|
73
|
+
"typescript": "^5.7.0",
|
|
74
|
+
"zod": "^4.0.0"
|
|
40
75
|
},
|
|
41
76
|
"license": "MIT",
|
|
42
77
|
"scripts": {
|