@shotstack/schemas 1.1.1 → 1.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.
- package/dist/zod/zod.gen.cjs +2266 -0
- package/package.json +6 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shotstack/schemas",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Centralized OpenAPI schemas and TypeScript types for Shotstack API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
},
|
|
13
13
|
"./zod": {
|
|
14
14
|
"types": "./dist/zod/zod.gen.d.ts",
|
|
15
|
-
"
|
|
15
|
+
"import": "./dist/zod/zod.gen.js",
|
|
16
|
+
"require": "./dist/zod/zod.gen.cjs"
|
|
16
17
|
}
|
|
17
18
|
},
|
|
18
19
|
"files": [
|
|
@@ -24,7 +25,9 @@
|
|
|
24
25
|
"bundle": "swagger-cli bundle api.oas3.yaml -o dist/api.bundled.json -t json",
|
|
25
26
|
"generate:types": "openapi-typescript dist/api.bundled.json -o dist/schema.d.ts",
|
|
26
27
|
"generate:zod": "openapi-ts",
|
|
27
|
-
"compile:zod": "tsc --declaration
|
|
28
|
+
"compile:zod:cjs": "tsc --declaration false --module commonjs --moduleResolution node --target ES2022 --outDir dist/zod --skipLibCheck dist/zod/zod.gen.ts && node -e \"require('fs').renameSync('dist/zod/zod.gen.js','dist/zod/zod.gen.cjs')\"",
|
|
29
|
+
"compile:zod:esm": "tsc --declaration --module nodenext --moduleResolution nodenext --target ES2022 --outDir dist/zod --skipLibCheck dist/zod/zod.gen.ts",
|
|
30
|
+
"compile:zod": "npm run compile:zod:cjs && npm run compile:zod:esm",
|
|
28
31
|
"copy:index": "node -e \"require('fs').writeFileSync('dist/index.d.ts','export type * from \\\"./schema\\\";');require('fs').writeFileSync('dist/index.js','// Type-only package\\nexport {};');\"",
|
|
29
32
|
"build": "npm run clean && node -e \"require('fs').mkdirSync('dist',{recursive:true})\" && npm run bundle && npm run generate:types && npm run generate:zod && npm run compile:zod && npm run copy:index",
|
|
30
33
|
"build:docs": "cross-env ./build-docs.sh",
|