-
Notifications
You must be signed in to change notification settings - Fork 9
/
package.json
71 lines (71 loc) · 1.68 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
{
"name": "swaggie",
"version": "1.0.1",
"description": "Generate TypeScript REST client code from an OpenAPI spec",
"author": {
"name": "Piotr Dabrowski",
"url": "https://github.com/yhnavein"
},
"license": "MIT",
"homepage": "https://github.com/yhnavein/swaggie",
"repository": {
"type": "git",
"url": "https://github.com/yhnavein/swaggie.git"
},
"bugs": {
"url": "https://github.com/yhnavein/swaggie/issues"
},
"engines": {
"node": ">=18.0.0"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
"bin": {
"swaggie": "dist/cli.js"
},
"scripts": {
"build": "sucrase ./src -d ./dist --transforms typescript,imports && npm run rm-tests && npm run types",
"rm-tests": "find dist/ \\( -name '*.spec.js' -o -name 'types.js' \\) -type f -delete",
"types": "tsc src/types.ts --outDir dist/ --declaration --emitDeclarationOnly && cp test/index.d.ts ./dist/",
"test": "mocha",
"coverage": "npx nyc -r text -r json-summary mocha"
},
"files": [
"dist",
"templates"
],
"keywords": [
"swagger",
"openapi",
"openapi 3.0",
"rest",
"rest client",
"fetch",
"axios",
"angular",
"xior",
"swr",
"service",
"typescript",
"codegen"
],
"dependencies": {
"case": "^1.6.3",
"commander": "^12.1.0",
"eta": "^3.4.0",
"js-yaml": "^4.1.0",
"nanocolors": "^0.2.0",
"undici": "^6.19.2"
},
"devDependencies": {
"@types/chai": "4.3.16",
"@types/js-yaml": "4.0.9",
"@types/mocha": "10.0.7",
"@types/node": "20.14.9",
"chai": "4.4.1",
"mocha": "10.6.0",
"openapi-types": "^12.1.3",
"sucrase": "3.35.0",
"typescript": "5.5.3"
}
}