-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpackage.json
More file actions
95 lines (95 loc) · 3.61 KB
/
package.json
File metadata and controls
95 lines (95 loc) · 3.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"name": "@shotstack/schemas",
"version": "1.9.3",
"description": "Centralized OpenAPI schemas and TypeScript types for Shotstack API",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./zod": {
"types": "./dist/zod/zod.gen.d.ts",
"import": "./dist/zod/zod.gen.js",
"require": "./dist/zod/zod.gen.cjs"
},
"./json": {
"types": "./dist/json-schema/index.d.ts",
"import": "./dist/json-schema/index.js",
"require": "./dist/json-schema/index.cjs"
}
},
"files": [
"dist"
],
"scripts": {
"test": "tsc --noEmit --skipLibCheck",
"clean": "node -e \"fs=require('fs');if(fs.existsSync('dist'))fs.rmSync('dist',{recursive:true})\"",
"bundle": "swagger-cli bundle api.oas3.yaml -o dist/api.bundled.json -t json",
"generate:types": "openapi-typescript dist/api.bundled.json -o dist/schema.d.ts --default-non-nullable=false",
"generate:zod": "openapi-ts",
"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')\"",
"compile:zod:esm": "tsc --declaration --module nodenext --moduleResolution nodenext --target ES2022 --outDir dist/zod --skipLibCheck dist/zod/zod.gen.ts",
"compile:zod": "pnpm compile:zod:cjs && pnpm compile:zod:esm",
"generate:json-schema": "node scripts/generate-json-schema.cjs",
"fix:discriminator": "node scripts/fix-discriminator.cjs",
"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 {};');\"",
"build": "pnpm clean && node -e \"require('fs').mkdirSync('dist',{recursive:true})\" && pnpm bundle && pnpm generate:types && pnpm generate:zod && pnpm fix:discriminator && pnpm compile:zod && pnpm generate:json-schema && pnpm copy:index",
"build:docs": "cross-env ./build-docs.sh",
"build:sdks": "cross-env ./build-sdks.sh",
"start": "cross-env ./build-docs.sh && http-server build/docs/ -o -c-1",
"deploy:docs": "aws s3 sync build/docs/ s3://shotstack.io/docs/api",
"prepublishOnly": "node scripts/publish-guard.cjs && pnpm build && pnpm test",
"test:smoke": "node tests/smoke.cjs"
},
"repository": {
"type": "git",
"url": "https://github.com/shotstack/oas-api-definition.git"
},
"author": "Shotstack",
"license": "MIT",
"homepage": "https://github.com/shotstack/oas-api-definition",
"keywords": [
"shotstack",
"video",
"api",
"openapi",
"schema",
"typescript",
"zod"
],
"dependencies": {
"zod": "^4.2.0"
},
"peerDependencies": {
"zod": "^4.0.0"
},
"devDependencies": {
"@apidevtools/swagger-cli": "^4.0.4",
"@hey-api/openapi-ts": "^0.89.2",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/commit-analyzer": "^13.0.1",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^12.0.6",
"@semantic-release/npm": "^13.1.5",
"@semantic-release/release-notes-generator": "^14.1.0",
"ajv": "^8.11.2",
"cross-env": "^7.0.3",
"http-server": "^14.1.0",
"openapi-typescript": "^7.4.4",
"semantic-release": "^25.0.3",
"tsx": "^4.21.0",
"typescript": "^5.7.2",
"widdershins": "^4.0.1"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/",
"provenance": true
},
"engines": {
"node": ">=20"
}
}