vite-plugin-typed-env 0.1.1 → 0.1.2

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.
Files changed (2) hide show
  1. package/README.md +6 -0
  2. package/package.json +8 -2
package/README.md CHANGED
@@ -18,6 +18,12 @@ A Vite plugin that automatically generates TypeScript types and Zod schemas from
18
18
  npm install vite-plugin-typed-env -D
19
19
  ```
20
20
 
21
+ If using Zod validation (default), also install zod:
22
+
23
+ ```bash
24
+ npm install zod
25
+ ```
26
+
21
27
  ## Usage
22
28
 
23
29
  ### 1. Add to Vite config
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-typed-env",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -39,6 +39,12 @@
39
39
  "vitest": "^4.1.4"
40
40
  },
41
41
  "peerDependencies": {
42
- "vite": ">=4.0.0"
42
+ "vite": ">=4.0.0",
43
+ "zod": ">=3.0.0"
44
+ },
45
+ "peerDependenciesMeta": {
46
+ "zod": {
47
+ "optional": true
48
+ }
43
49
  }
44
50
  }