@zod-to-form/vite 0.4.5 → 0.4.7
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 +0 -4
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Vite plugin for [zod-to-form](https://github.com/pradeepmouli/zod-to-form). Transforms `?z2f` imports into generated form components and (opt-in) rewrites `<ZodForm>` JSX call sites into generated components at build time — all with no separate codegen CLI step.
|
|
4
4
|
|
|
5
|
-
> **Status**: In active development. See [`specs/007-vite-codegen-plugin/`](../../specs/007-vite-codegen-plugin/) for the full specification, plan, and implementation tasks.
|
|
6
|
-
|
|
7
5
|
## Install
|
|
8
6
|
|
|
9
7
|
The plugin emits standard React + react-hook-form code, so the consumer
|
|
@@ -20,8 +18,6 @@ runtime peers that the generated form components import.
|
|
|
20
18
|
|
|
21
19
|
## Quickstart
|
|
22
20
|
|
|
23
|
-
See the full walkthrough in [quickstart.md](../../specs/007-vite-codegen-plugin/quickstart.md).
|
|
24
|
-
|
|
25
21
|
```ts
|
|
26
22
|
// vite.config.ts
|
|
27
23
|
import { defineConfig } from 'vite';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zod-to-form/vite",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.7",
|
|
4
4
|
"description": "Vite plugin for zod-to-form — transforms ?z2f imports into generated form components and optionally replaces <ZodForm> JSX call sites with generated components at build time",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/pradeepmouli/zod-to-form#readme",
|
|
@@ -48,14 +48,14 @@
|
|
|
48
48
|
"@babel/parser": "^7.29.3",
|
|
49
49
|
"@babel/traverse": "^7.29.0",
|
|
50
50
|
"@babel/types": "^7.29.0",
|
|
51
|
-
"magic-string": "^
|
|
51
|
+
"magic-string": "^1.1.0",
|
|
52
52
|
"pathe": "^2.0.3",
|
|
53
|
-
"@zod-to-form/codegen": "0.10.
|
|
54
|
-
"@zod-to-form/core": "0.11.
|
|
53
|
+
"@zod-to-form/codegen": "0.10.3",
|
|
54
|
+
"@zod-to-form/core": "0.11.3"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/babel__traverse": "^7.28.0",
|
|
58
|
-
"vite": "^8.
|
|
58
|
+
"vite": "^8.1.5",
|
|
59
59
|
"zod": "^4.4.3"
|
|
60
60
|
},
|
|
61
61
|
"publishConfig": {
|
|
@@ -63,11 +63,11 @@
|
|
|
63
63
|
},
|
|
64
64
|
"author": "Pradeep Mouli <pmouli@mac.com> (https://github.com/pradeepmouli)",
|
|
65
65
|
"scripts": {
|
|
66
|
-
"build": "
|
|
66
|
+
"build": "tsc -p tsconfig.build.json && cp src/virtual-types.d.ts dist/virtual-types.d.ts",
|
|
67
67
|
"clean": "rm -rf dist tsconfig.build.tsbuildinfo tsconfig.tsbuildinfo",
|
|
68
|
-
"dev": "
|
|
68
|
+
"dev": "tsc -p tsconfig.build.json --watch",
|
|
69
69
|
"test": "vitest run",
|
|
70
70
|
"test:coverage": "vitest run --coverage",
|
|
71
|
-
"type-check": "
|
|
71
|
+
"type-check": "tsc --noEmit"
|
|
72
72
|
}
|
|
73
73
|
}
|