forked from oazapfts/oazapfts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
92 lines (92 loc) · 2.79 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
{
"name": "@tzkt/oazapfts",
"version": "4.5.2",
"description": "OpenApi TypeScript client generator",
"publishConfig": {
"access": "public"
},
"main": "lib/index.js",
"module": "lib/module/index.js",
"exports": {
".": {
"import": "./lib/module/index.js",
"require": "./lib/index.js",
"types": "./lib/index.d.ts"
},
"./runtime": {
"import": "./lib/module/runtime/index.js",
"require": "./lib/runtime/index.js",
"types": "./lib/runtime/index.d.ts"
},
"./codegen": {
"import": "./lib/module/codegen/index.js",
"require": "./lib/codegen/index.js",
"types": "./lib/codegen/index.d.ts"
},
"./runtime/*": {
"import": "./lib/module/runtime/*.js",
"require": "./lib/runtime/*.js",
"types": "./lib/runtime/*.ts"
},
"./codegen/*": {
"import": "./lib/module/codegen/*.js",
"require": "./lib/codegen/*.js",
"types": "./lib/codegen/*.ts"
}
},
"bin": {
"oazapfts": "lib/codegen/cli.js"
},
"scripts": {
"build": "npm run build:commonjs && npm run build:module",
"build:commonjs": "tsc",
"build:module": "tsc -p tsconfig.module.json",
"test": "npm run test:unit && npm run test:e2e",
"test:unit": "jest",
"test:e2e": "npm run generate-demo && with-server 'cd demo && node --experimental-vm-modules ../node_modules/jest/bin/jest.js'",
"start": "open-api-mocker -p $PORT -s demo/petstore.json",
"generate-demo": "npm run prepare && ./lib/codegen/cli.js ./demo/petstore.json ./demo/api.ts && ./lib/codegen/cli.js --optimistic ./demo/petstore.json ./demo/optimisticApi.ts && ./lib/codegen/cli.js --useEnumType ./demo/petstore.json ./demo/enumApi.ts && prettier -w demo",
"prepare": "npm run build && chmod +x ./lib/codegen/cli.js && husky install"
},
"keywords": [
"openapi",
"typescript"
],
"author": "Felix Gnass",
"license": "MIT",
"repository": "git://github.com/tzkt/oazapfts.git",
"devDependencies": {
"@jest/types": "^29.3.1",
"@ts-morph/bootstrap": "^0.18.0",
"@types/jest": "^29.2.3",
"@types/lodash": "^4.14.190",
"@types/minimist": "^1.2.2",
"@types/node": "^18.11.9",
"form-data": "^4.0.0",
"husky": "^8.0.2",
"jest": "^29.3.1",
"lint-staged": "^13.0.4",
"node-fetch": "^3.3.0",
"open-api-mocker": "^1.11.1",
"openapi-types": "^12.0.2",
"prettier": "^2.8.0",
"ts-jest": "^29.0.3",
"ts-node": "^10.9.1",
"with-server": "^2.1.0"
},
"dependencies": {
"@apidevtools/swagger-parser": "^10.1.0",
"lodash": "^4.17.21",
"minimist": "^1.2.7",
"swagger2openapi": "^7.0.8",
"typescript": "^4.9.3"
},
"lint-staged": {
"*.{ts,js,json,md,yml}": "prettier --write"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=8.0.0"
},
"engineStrict": true
}