Skip to content

Commit da215fe

Browse files
docs: update npx script
1 parent e89cc49 commit da215fe

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed

.changeset/cyan-tools-wonder.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'openapi-ts-request': patch
3+
---
4+
5+
docs: update npx script

README-en_US.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ Generate TS interfaces, request client, request mock service, enum, type field l
2020
## Usage
2121

2222
```bash
23+
# npm
2324
npm i openapi-ts-request --save-dev
2425

26+
# pnpm
2527
pnpm i openapi-ts-request -D
2628
```
2729

@@ -103,8 +105,12 @@ npm run openapi
103105

104106
### NPX
105107

106-
```
107-
npx openapi-ts-request openapi -i ./openapi.json -o ./apis
108+
```bash
109+
# npm
110+
npx --package=openapi-ts-request -- openapi -i ./openapi.json -o ./apis
111+
112+
# pnpm
113+
pnpm --package=openapi-ts-request dlx openapi -i ./openapi.json -o ./apis
108114
```
109115

110116
### CLI

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@
2020
## 使用
2121

2222
```bash
23+
# npm
2324
npm i openapi-ts-request --save-dev
2425

26+
# pnpm
2527
pnpm i openapi-ts-request -D
2628
```
2729

@@ -103,8 +105,12 @@ npm run openapi
103105

104106
### NPX
105107

106-
```
107-
npx openapi-ts-request openapi -i ./openapi.json -o ./apis
108+
```bash
109+
# npm
110+
npx --package=openapi-ts-request -- openapi -i ./openapi.json -o ./apis
111+
112+
# pnpm
113+
pnpm --package=openapi-ts-request dlx openapi -i ./openapi.json -o ./apis
108114
```
109115

110116
### CLI

0 commit comments

Comments
 (0)