codegen-openapi-ts 0.9.0-alpha.5 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +0 -0
- package/README.md +152 -63
- package/bin/cli.js +54 -0
- package/bin/index.js +43 -34
- package/dist/index.js +2 -1
- package/package.json +25 -29
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codegen-openapi-ts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Library that generates Typescript clients based on the OpenAPI specification.",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"author": "devteaa",
|
|
6
7
|
"homepage": "https://github.com/devteaa/codegen-openapi-ts",
|
|
7
8
|
"repository": {
|
|
@@ -28,16 +29,27 @@
|
|
|
28
29
|
"email": "devtea@protonmail.com"
|
|
29
30
|
}
|
|
30
31
|
],
|
|
31
|
-
"
|
|
32
|
-
|
|
32
|
+
"exports": {
|
|
33
|
+
".": {
|
|
34
|
+
"types": "./dist/index.d.ts",
|
|
35
|
+
"import": "./dist/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./package.json": "./package.json"
|
|
38
|
+
},
|
|
39
|
+
"types": "./dist/index.d.ts",
|
|
33
40
|
"bin": {
|
|
34
|
-
"codegen-openapi-ts": "bin/index.js"
|
|
41
|
+
"codegen-openapi-ts": "bin/index.js",
|
|
42
|
+
"openapi": "bin/cli.js"
|
|
35
43
|
},
|
|
36
44
|
"files": [
|
|
37
45
|
"bin/index.js",
|
|
46
|
+
"bin/cli.js",
|
|
38
47
|
"dist/index.js",
|
|
39
48
|
"dist/index.d.ts"
|
|
40
49
|
],
|
|
50
|
+
"engines": {
|
|
51
|
+
"node": ">=24"
|
|
52
|
+
},
|
|
41
53
|
"scripts": {
|
|
42
54
|
"clean": "rimraf ./dist ./test/generated ./test/e2e/generated ./samples/generated ./coverage ./node_modules/.cache",
|
|
43
55
|
"build": "rollup --config --environment NODE_ENV:development",
|
|
@@ -45,11 +57,11 @@
|
|
|
45
57
|
"release": "rollup --config --environment NODE_ENV:production",
|
|
46
58
|
"validate": "tsc --project tsconfig.json --noEmit",
|
|
47
59
|
"run": "node ./test/index.js",
|
|
48
|
-
"test": "
|
|
49
|
-
"test:update": "
|
|
50
|
-
"test:watch": "
|
|
51
|
-
"test:coverage": "
|
|
52
|
-
"test:e2e": "
|
|
60
|
+
"test": "vitest run",
|
|
61
|
+
"test:update": "vitest run -u",
|
|
62
|
+
"test:watch": "vitest",
|
|
63
|
+
"test:coverage": "vitest run --coverage",
|
|
64
|
+
"test:e2e": "vitest run --config vitest.e2e.config.ts",
|
|
53
65
|
"eslint": "eslint .",
|
|
54
66
|
"eslint:fix": "eslint . --fix",
|
|
55
67
|
"prepare": "npm run clean && npm run release",
|
|
@@ -64,24 +76,11 @@
|
|
|
64
76
|
"api-spec-converter": "^2.12.0",
|
|
65
77
|
"camelcase": "^6.3.0",
|
|
66
78
|
"commander": "^11.1.0",
|
|
67
|
-
"esm-config": "^1.1.0",
|
|
68
79
|
"fs-extra": "^11.2.0",
|
|
69
80
|
"handlebars": "^4.7.8",
|
|
70
81
|
"shelljs": "^0.8.5"
|
|
71
82
|
},
|
|
72
83
|
"devDependencies": {
|
|
73
|
-
"@angular-devkit/build-angular": "17.0.9",
|
|
74
|
-
"@angular/animations": "17.0.8",
|
|
75
|
-
"@angular/cli": "17.0.9",
|
|
76
|
-
"@angular/common": "17.0.8",
|
|
77
|
-
"@angular/compiler": "17.0.8",
|
|
78
|
-
"@angular/compiler-cli": "17.0.8",
|
|
79
|
-
"@angular/core": "17.0.8",
|
|
80
|
-
"@angular/forms": "17.0.8",
|
|
81
|
-
"@angular/platform-browser": "17.0.8",
|
|
82
|
-
"@angular/platform-browser-dynamic": "17.0.8",
|
|
83
|
-
"@angular/router": "17.0.8",
|
|
84
|
-
"@babel/cli": "7.23.9",
|
|
85
84
|
"@babel/core": "7.23.9",
|
|
86
85
|
"@babel/preset-env": "7.23.9",
|
|
87
86
|
"@babel/preset-typescript": "7.23.3",
|
|
@@ -93,12 +92,13 @@
|
|
|
93
92
|
"@types/express": "4.17.21",
|
|
94
93
|
"@types/fs-extra": "^11.0.4",
|
|
95
94
|
"@types/glob": "8.1.0",
|
|
96
|
-
"@types/
|
|
97
|
-
"@types/
|
|
95
|
+
"@types/node": "^24.0.0",
|
|
96
|
+
"@types/shelljs": "^0.8.15",
|
|
98
97
|
"@types/node-fetch": "2.6.10",
|
|
99
98
|
"@types/qs": "6.9.11",
|
|
100
99
|
"@typescript-eslint/eslint-plugin": "6.20.0",
|
|
101
100
|
"@typescript-eslint/parser": "6.20.0",
|
|
101
|
+
"@vitest/coverage-v8": "^2.1.0",
|
|
102
102
|
"abort-controller": "3.0.0",
|
|
103
103
|
"axios": "1.6.7",
|
|
104
104
|
"codecov": "3.8.3",
|
|
@@ -110,19 +110,15 @@
|
|
|
110
110
|
"express": "4.18.2",
|
|
111
111
|
"form-data": "4.0.0",
|
|
112
112
|
"glob": "10.3.10",
|
|
113
|
-
"jest": "29.7.0",
|
|
114
|
-
"jest-cli": "29.7.0",
|
|
115
113
|
"node-fetch": "2.7.0",
|
|
116
114
|
"prettier": "3.2.4",
|
|
117
115
|
"puppeteer": "21.10.0",
|
|
118
116
|
"qs": "6.11.2",
|
|
119
117
|
"rimraf": "5.0.5",
|
|
120
118
|
"rollup": "4.7.0",
|
|
121
|
-
"rxjs": "7.8.1",
|
|
122
|
-
"ts-node": "10.9.2",
|
|
123
119
|
"tslib": "2.6.2",
|
|
124
120
|
"typescript": "5.2.2",
|
|
125
|
-
"
|
|
121
|
+
"vitest": "^2.1.0"
|
|
126
122
|
},
|
|
127
123
|
"overrides": {
|
|
128
124
|
"node-fetch": "2.7.0",
|