openapi-typescript-generate 0.1.0 → 0.1.2
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 +27 -27
- package/README.md +8 -6
- package/package.json +3 -3
package/LICENSE
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
Copyright (c) 2026. All rights reserved.
|
|
2
|
-
|
|
3
|
-
This software and associated documentation files (the "Software") are the
|
|
4
|
-
exclusive property of the copyright holder.
|
|
5
|
-
|
|
6
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
-
of this Software, to use the Software solely for its intended purpose
|
|
8
|
-
(generating TypeScript types and API clients from OpenAPI specifications).
|
|
9
|
-
|
|
10
|
-
The following actions are expressly prohibited without prior written consent
|
|
11
|
-
from the copyright holder:
|
|
12
|
-
|
|
13
|
-
1. Modifying, adapting, or creating derivative works based on the Software.
|
|
14
|
-
2. Redistributing, sublicensing, selling, or otherwise transferring the
|
|
15
|
-
Software or any portion thereof to any third party.
|
|
16
|
-
3. Publishing, uploading, or making the Software available on any package
|
|
17
|
-
registry, repository, or distribution channel other than the official
|
|
18
|
-
release by the copyright holder.
|
|
19
|
-
4. Reverse-engineering, decompiling, or disassembling the Software.
|
|
20
|
-
|
|
21
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
-
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
25
|
-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
26
|
-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
27
|
-
|
|
1
|
+
Copyright (c) 2026. All rights reserved.
|
|
2
|
+
|
|
3
|
+
This software and associated documentation files (the "Software") are the
|
|
4
|
+
exclusive property of the copyright holder.
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this Software, to use the Software solely for its intended purpose
|
|
8
|
+
(generating TypeScript types and API clients from OpenAPI specifications).
|
|
9
|
+
|
|
10
|
+
The following actions are expressly prohibited without prior written consent
|
|
11
|
+
from the copyright holder:
|
|
12
|
+
|
|
13
|
+
1. Modifying, adapting, or creating derivative works based on the Software.
|
|
14
|
+
2. Redistributing, sublicensing, selling, or otherwise transferring the
|
|
15
|
+
Software or any portion thereof to any third party.
|
|
16
|
+
3. Publishing, uploading, or making the Software available on any package
|
|
17
|
+
registry, repository, or distribution channel other than the official
|
|
18
|
+
release by the copyright holder.
|
|
19
|
+
4. Reverse-engineering, decompiling, or disassembling the Software.
|
|
20
|
+
|
|
21
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
25
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
26
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
27
|
+
|
package/README.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
#
|
|
1
|
+
# openapi-typescript-generate
|
|
2
2
|
|
|
3
|
-
CLI tool
|
|
3
|
+
CLI tool to generate TypeScript types and clients from OpenAPI specs.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
bun add -g
|
|
8
|
+
bun add -g openapi-typescript-generate
|
|
9
9
|
# or add as a dev dependency
|
|
10
|
-
bun add -d
|
|
10
|
+
bun add -d openapi-typescript-generate
|
|
11
11
|
# or use directly
|
|
12
|
-
bunx
|
|
12
|
+
bunx openapi-typescript-generate
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## CLI Usage
|
|
@@ -45,7 +45,7 @@ The `--api-urls` value is a comma-separated list. Each entry can be:
|
|
|
45
45
|
## Programmatic Usage
|
|
46
46
|
|
|
47
47
|
```typescript
|
|
48
|
-
import { generate } from "
|
|
48
|
+
import { generate } from "openapi-typescript-generate"
|
|
49
49
|
|
|
50
50
|
await generate({
|
|
51
51
|
apiUrls: "user-service@http://localhost:8081",
|
|
@@ -73,5 +73,7 @@ generated/
|
|
|
73
73
|
```bash
|
|
74
74
|
bun install
|
|
75
75
|
bun run build
|
|
76
|
+
bun run dev
|
|
77
|
+
bun run clean
|
|
76
78
|
```
|
|
77
79
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openapi-typescript-generate",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "CLI tool to generate TypeScript types and clients from OpenAPI specs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"
|
|
7
|
+
"openapi-typescript-generate": "./dist/cli.js"
|
|
8
8
|
},
|
|
9
9
|
"main": "./dist/index.js",
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"codegen",
|
|
49
49
|
"cli"
|
|
50
50
|
],
|
|
51
|
-
"license": "
|
|
51
|
+
"license": "MIT",
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
|
54
54
|
},
|