-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpackage.json
97 lines (97 loc) · 2.94 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
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"name": "openapi-transformer-toolkit",
"version": "1.5.0",
"description": "Generates schemas and types from OpenAPI specifications",
"main": "dist/esm/index.js",
"type": "module",
"license": "ISC",
"scripts": {
"generate-toc": "node ./scripts/generate-toc.mjs",
"prejson2ts": "npm run build",
"json2ts": "./dist/esm/src/cli.js json2ts -i ./example/output/json/components.schemas -o ./example/output/types -c ./example/json-schema-to-typescript-config.json",
"lint": "eslint .",
"preoas2json": "npm run build",
"oas2json": "./dist/esm/src/cli.js oas2json -i ./example/openapi.yml -o ./example/output/json",
"preoas2ts": "npm run build",
"oas2ts": "./dist/esm/src/cli.js oas2ts -i ./example/openapi.yml -o ./example/output/types -c ./example/json-schema-to-typescript-config.json",
"preoas2tson": "npm run build",
"oas2tson": "./dist/esm/src/cli.js oas2tson -i ./example/openapi.yml -o ./example/output/ts",
"prepare": "husky",
"test": "node --test --loader ts-node/esm test/*.test.ts",
"build": "tsup-node",
"postbuild": "cp ./package.json ./dist/esm"
},
"bin": {
"openapi-transformer-toolkit": "./dist/esm/src/cli.js"
},
"files": [
"dist",
"example"
],
"repository": {
"type": "git",
"url": "git+https://github.com/nearform/openapi-transformer-toolkit.git"
},
"author": "",
"bugs": {
"url": "https://github.com/nearform/openapi-transformer-toolkit/issues"
},
"homepage": "https://github.com/nearform/openapi-transformer-toolkit#readme",
"dependencies": {
"@apidevtools/json-schema-ref-parser": "^11.1.0",
"@openapi-contrib/openapi-schema-to-json-schema": "^5.1.0",
"commander": "^13.0.0",
"desm": "^1.3.1",
"filenamify": "^6.0.0",
"fs-extra": "^11.1.1",
"json-schema-to-typescript": "^15.0.2",
"lodash.get": "^4.4.2",
"lodash.trimstart": "^4.5.1",
"pino": "^9.3.1",
"prettier": "^3.3.3",
"yaml": "^2.4.5"
},
"devDependencies": {
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@types/fs-extra": "^11.0.4",
"@types/lodash": "^4.17.13",
"@types/lodash.get": "^4.4.9",
"@types/lodash.trimstart": "^4.5.9",
"@types/node": "^22.9.0",
"@typescript-eslint/eslint-plugin": "^7.16.1",
"@typescript-eslint/parser": "^7.16.1",
"eslint": "^8.57.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-prettier": "^5.2.1",
"husky": "^9.1.1",
"lint-staged": "^15.2.7",
"remark": "^15.0.1",
"remark-toc": "^9.0.0",
"ts-node": "^10.9.2",
"tsup": "^8.2.0",
"typescript": "^5.5.3"
},
"lint-staged": {
"*.{js,jsx}": "eslint --cache --fix"
},
"keywords": [
"openapi",
"openapi3",
"swagger",
"api",
"json-schema",
"typescript",
"codegen",
"code-generation",
"autogenerate",
"schema",
"api-design",
"api-development",
"rest-api",
"oas",
"json",
"transformer",
"toolkit"
]
}