Skip to content

Commit 931065b

Browse files
authored
Merge pull request #10 from moznion/ship_it
Add `ship` sub-command to publish a package
2 parents 5fe3398 + bbf5bc0 commit 931065b

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,14 @@ client.getUsersBulkJobid({path: {jobId: "123"}});
229229
230230
- [openapi-fetch-gen – Generate TypeScript API client from OpenAPI TypeScript interface definitions created by openapi-typescript - DEV Community](https://dev.to/moznion/openapi-fetch-gen-generate-typescript-api-client-from-openapi-typescript-interface-definitions-kjd)
231231
232+
## For developers
233+
234+
### How to publish this packages
235+
236+
```
237+
$ pnpm ship
238+
```
239+
232240
## License
233241
234242
MIT

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"test": "pnpm test:clean && vitest run",
2222
"test:watch": "vitest",
2323
"test:clean": "rm -f ./src/test_resources/generated_client*",
24-
"generate_test_resource": "openapi-typescript -o ./src/test_resources/schema.d.ts ./src/test_resources/schema.yaml"
24+
"generate_test_resource": "openapi-typescript -o ./src/test_resources/schema.d.ts ./src/test_resources/schema.yaml",
25+
"ship": "pnpm build && pnpm publish"
2526
},
2627
"bin": {
2728
"openapi-fetch-gen": "./dist/cli.js"

0 commit comments

Comments
 (0)