zcb 0.0.11 → 0.0.13
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 +3 -1
- package/bin/zcb.mjs +1 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -200,8 +200,10 @@ Use to return the config values as an object.
|
|
|
200
200
|
|
|
201
201
|
Use the script below or its `build` equivalent to transform a config builder file into a file that default exports a literally typed object like the one in the following example.
|
|
202
202
|
|
|
203
|
+
If you require native ESM support, use `NODE_OPTIONS="--loader ts-node/esm"` instead.
|
|
204
|
+
|
|
203
205
|
```sh
|
|
204
|
-
npx zcb watch ./configBuilder.ts ./builtConfig.ts
|
|
206
|
+
NODE_OPTIONS="--loader ts-node/register" npx zcb watch ./configBuilder.ts ./builtConfig.ts
|
|
205
207
|
```
|
|
206
208
|
|
|
207
209
|
```ts
|
package/bin/zcb.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zcb",
|
|
3
3
|
"description": "Build configs with type safety from zod schema.",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.13",
|
|
5
5
|
"author": "Dylan Aubrey",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/badbatch/zod-config-builder",
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
"handlebars": "^4.7.7",
|
|
22
22
|
"json-schema": "^0.4.0",
|
|
23
23
|
"shelljs": "^0.8.4",
|
|
24
|
-
"ts-node": "^10.9.1",
|
|
25
24
|
"yargs": "^15.1.0",
|
|
26
25
|
"zod": "^3.21.4",
|
|
27
26
|
"zod-to-json-schema": "^3.21.0"
|
|
@@ -29,7 +28,8 @@
|
|
|
29
28
|
"peerDependencies": {
|
|
30
29
|
"@babel/runtime": "<8",
|
|
31
30
|
"core-js": "<4",
|
|
32
|
-
"lodash": "<5"
|
|
31
|
+
"lodash": "<5",
|
|
32
|
+
"ts-node": "<11"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@babel/cli": "^7.21.5",
|
|
@@ -104,6 +104,7 @@
|
|
|
104
104
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
105
105
|
"suppress-experimental-warnings": "^1.1.17",
|
|
106
106
|
"syncpack": "^9.8.6",
|
|
107
|
+
"ts-node": "^10.9.1",
|
|
107
108
|
"ts-toolbelt": "^9.6.0",
|
|
108
109
|
"type-fest": "^3.10.0",
|
|
109
110
|
"typescript": "^5.0.3"
|