-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
84 lines (84 loc) · 3.45 KB
/
package.json
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
{
"name": "express-typescript-codegen",
"version": "0.0.1",
"private": false,
"description": "Generate Typescript clients and servers from an OpenApi spec.",
"keywords": [],
"homepage": "https://github.com/laurence79/express-typescript-codegen#readme",
"bugs": {
"url": "https://github.com/laurence79/express-typescript-codegen/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/laurence79/express-typescript-codegen.git"
},
"license": "ISC",
"author": "",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"bin": "./dist/cli.js",
"files": [
"dist/"
],
"scripts": {
"gen": "npm-run-all gen:*",
"gen:v2-express": "ts-node --files src/cli.ts generate ./example/swagger.json --readonly-dtos --filename ./example/generated --template express",
"gen:v2-express-di": "ts-node --files src/cli.ts generate ./example/swagger.json --readonly-dtos --filename ./example/generated --template express-di",
"gen:v2-client": "ts-node --files src/cli.ts generate ./example/swagger.json --readonly-dtos --filename ./example/generated --template client",
"gen:v2-types": "ts-node --files src/cli.ts generate ./example/swagger.json --readonly-dtos --filename ./example/generated --template types",
"gen:v2-msw-handlers": "ts-node --files src/cli.ts generate ./example/swagger.json --readonly-dtos --filename ./example/generated --template msw-handlers",
"gen:v3-express": "ts-node --files src/cli.ts generate ./example/api.github.com.yaml --readonly-dtos --filename ./example/generated --template express",
"gen:v3-express-di": "ts-node --files src/cli.ts generate ./example/api.github.com.yaml --readonly-dtos --filename ./example/generated --template express-di",
"gen:v3-client": "ts-node --files src/cli.ts generate ./example/api.github.com.yaml --readonly-dtos --filename ./example/generated --template client",
"gen:v3-types": "ts-node --files src/cli.ts generate ./example/api.github.com.yaml --readonly-dtos --filename ./example/generated --template types",
"gen:v3-msw-handlers": "ts-node --files src/cli.ts generate ./example/api.github.com.yaml --readonly-dtos --filename ./example/generated --template msw-handlers",
"lint": "eslint 'src/**/*.ts'",
"build": "tsc",
"prepublishOnly": "npm run build",
"test": "jest"
},
"dependencies": {
"chalk": "^4",
"commander": "^7",
"json-pointer": "^0.6.2",
"json-schema": "^0.4.0",
"prettier": "^3",
"ts-array-extensions": "^0.5.0",
"yaml": "^2"
},
"devDependencies": {
"@eslint/js": "^9.11.1",
"@laurence79/express-async-request-handler": "^1.1.0",
"@laurence79/ts-json": "^1.0.1",
"@swc/core": "^1.7.26",
"@swc/helpers": "^0.5.13",
"@tsconfig/node20": "^20.1.4",
"@types/eslint__js": "^8.42.3",
"@types/express": "^4.17.11",
"@types/express-serve-static-core": "^4.17.32",
"@types/jest": "^29",
"@types/json-pointer": "^1",
"@types/json-schema": "^7",
"@types/node": "^20",
"@types/qs": "^6",
"ajv": "^8",
"eslint": "^9.11.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"express": "^4",
"express-json-validator-middleware": "^3.0.1",
"globals": "^15.9.0",
"jest": "^29",
"msw": "^2",
"npm-run-all": "^4.1.5",
"prettier": "^3",
"qs": "^6",
"ts-jest": "^29",
"ts-node": "^10.9.2",
"typescript": "^5.6.2",
"typescript-eslint": "^8.8.0"
},
"engines": {
"node": ">=16"
}
}