Skip to content

Commit

Permalink
reproduce bug
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
  • Loading branch information
TimoGlastra committed Apr 12, 2024
1 parent b45835c commit e2d8357
Show file tree
Hide file tree
Showing 9 changed files with 690 additions and 206 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
node_modules
.env
.env
src/generated
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
Install deps:

```
```sh
pnpm install
```

Setup env:
Copy env example and modify it to your needs:

```
```sh
cp .env.example .env
```

Start
Generate:

```sh
pnpm generate
```

Start

```sh
pnpm start
```
6 changes: 6 additions & 0 deletions openapi-ts.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { defineConfig } from "@hey-api/openapi-ts";

export default defineConfig({
input: "https://api.aurora.paradym.id/openapi-docs.json",
output: "src/generated",
});
1 change: 0 additions & 1 deletion openapi.json

This file was deleted.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
"version": "1.0.0",
"type": "module",
"scripts": {
"generate": "openapi-ts",
"start": "tsx src/index.ts"
},
"dependencies": {
"@hey-api/openapi-ts": "^0.37.0",
"dotenv": "^16.4.5"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit e2d8357

Please sign in to comment.