Skip to content

Commit

Permalink
chore: run orval over the bundled api (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Arregui authored May 26, 2023
1 parent d45222e commit e81da14
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 1,021 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ lib
node_modules
.DS_Store
openapitools.json
src/client/client.schemas.ts
2 changes: 1 addition & 1 deletion orval.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineConfig } from 'orval'

export default defineConfig({
catalyst: {
input: './openapi/catalyst.yaml',
input: './lib/api.yaml',
output: {
mode: 'split',
target: './src/client/client.ts'
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
"scripts": {
"start": "openapi preview-docs",
"build": "yarn build:api && yarn build:src",
"build:api": "openapi bundle -o lib/api",
"build:client": "orval && rm src/client/client.ts",
"build:api": "openapi bundle -o lib/api && orval && rm src/client/client.ts",
"build:src": "tsc -b",
"test": "yarn build & run-s test:*",
"test:api": "openapi lint",
Expand Down
Loading

0 comments on commit e81da14

Please sign in to comment.