@arthur-lobo/zod-env 1.0.0 → 1.1.0
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 +12 -9
package/README.md
CHANGED
|
@@ -5,9 +5,13 @@ A TypeScript library for loading and validating environment variables using [Zod
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
|
|
8
|
+
bun add @arthur-lobo/zod-env zod
|
|
9
|
+
# or
|
|
10
|
+
npm install @arthur-lobo/zod-env zod
|
|
9
11
|
```
|
|
10
12
|
|
|
13
|
+
`zod` is a peer dependency, so it must be installed alongside the library.
|
|
14
|
+
|
|
11
15
|
## Description
|
|
12
16
|
|
|
13
17
|
`ZodEnv` allows you to define Zod schemas to validate environment variables, ensuring their values are in the correct format and providing default values when necessary. It supports both synchronous and asynchronous operations, and allow you to define how `.env` must be loaded.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arthur-lobo/zod-env",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "load and validate your env with zod.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"zod",
|
|
@@ -21,21 +21,24 @@
|
|
|
21
21
|
"import": "./dist/index.js"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
24
25
|
"scripts": {
|
|
25
26
|
"test": "vitest --run",
|
|
26
27
|
"build": "tsup",
|
|
27
|
-
"prepack": "
|
|
28
|
+
"prepack": "bun run build"
|
|
28
29
|
},
|
|
29
30
|
"files": [
|
|
30
31
|
"dist"
|
|
31
32
|
],
|
|
32
|
-
"
|
|
33
|
+
"peerDependencies": {
|
|
33
34
|
"zod": "^4.3.6"
|
|
34
35
|
},
|
|
35
36
|
"devDependencies": {
|
|
36
|
-
"@types/node": "^25.
|
|
37
|
-
"tsup": "^
|
|
38
|
-
"typescript": "^
|
|
39
|
-
"vitest": "^4.1.
|
|
40
|
-
|
|
41
|
-
}
|
|
37
|
+
"@types/node": "^25.9.9",
|
|
38
|
+
"tsup": "^9.0.0",
|
|
39
|
+
"typescript": "^6.0.0",
|
|
40
|
+
"vitest": "^4.1.12",
|
|
41
|
+
"zod": "^4.6.7"
|
|
42
|
+
},
|
|
43
|
+
"packageManager": "bun@1.4.0"
|
|
44
|
+
}
|