Skip to content

Commit

Permalink
chore(client): generate using new maintained package
Browse files Browse the repository at this point in the history
Signed-off-by: Jordan Shatford <[email protected]>
  • Loading branch information
jordanshatford committed Mar 22, 2024
1 parent 0b90993 commit 78bbeba
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ Please refer to the [contributing guide](CONTRIBUTING.md) for how to install the
- `web`: A web application developed in [SvelteKit](https://kit.svelte.dev/).

### Packages:
- `client`: A TypeScript API client generated from the OpenAPI specification for the API using [OpenAPI TypeScript Codegen](https://github.com/nicolas-chaulet/openapi-typescript-codegen).
- `client`: A TypeScript API client generated from the OpenAPI specification for the API using [openapi-ts](https://github.com/hey-api/openapi-ts).
- `config`: Common configs shared between other packages and apps in the monorepo.
- `ui`: A UI library used by the project developed in [Svelte](https://svelte.dev/).
5 changes: 2 additions & 3 deletions packages/client/openapi-ts.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/** @type {import('@nicolas-chaulet/openapi-typescript-codegen').UserConfig} */
/** @type {import('@hey-api/openapi-ts').UserConfig} */
module.exports = {
input: require('@yd/api'),
output: './src/generated',
client: 'fetch',
enums: true,
exportSchemas: false,
useOptions: true
exportSchemas: false
};
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"format": "prettier --write ."
},
"devDependencies": {
"@nicolas-chaulet/openapi-typescript-codegen": "^0.27.36",
"@hey-api/openapi-ts": "^0.27.38",
"@yd/api": "workspace:*",
"@yd/config": "workspace:*",
"prettier": "^3.2.5",
Expand Down
28 changes: 14 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 78bbeba

Please sign in to comment.