@chkit/plugin-codegen 0.1.0-beta.27 → 0.1.0-beta.29
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 +5 -1
- package/package.json +8 -4
package/README.md
CHANGED
|
@@ -7,9 +7,13 @@ Part of the [chkit](https://github.com/obsessiondb/chkit) monorepo. This plugin
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
bun add -d @chkit/plugin-codegen
|
|
10
|
+
bun add -d @chkit/plugin-codegen zod
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
+
`zod` is a peer dependency (`^4.0.0`): the plugin uses it at runtime, and any
|
|
14
|
+
generated Zod schemas (`emitZod: true`) import `zod` from your project. Install
|
|
15
|
+
the same `zod` your project already uses to avoid duplicate copies.
|
|
16
|
+
|
|
13
17
|
## Usage
|
|
14
18
|
|
|
15
19
|
Register the plugin in your config:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chkit/plugin-codegen",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.29",
|
|
4
4
|
"description": "TypeScript type and Zod schema generation plugin for chkit",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ObsessionDB",
|
|
@@ -42,8 +42,12 @@
|
|
|
42
42
|
"clean": "rm -rf dist"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@chkit/core": "0.1.0-beta.
|
|
46
|
-
|
|
45
|
+
"@chkit/core": "0.1.0-beta.29"
|
|
46
|
+
},
|
|
47
|
+
"peerDependencies": {
|
|
48
|
+
"zod": "^4.0.0"
|
|
47
49
|
},
|
|
48
|
-
"devDependencies": {
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"zod": "^4.3.6"
|
|
52
|
+
}
|
|
49
53
|
}
|