Skip to content

Commit

Permalink
feat: new client + fix generation
Browse files Browse the repository at this point in the history
  • Loading branch information
ledouxm committed Apr 22, 2024
1 parent 036e192 commit 8460103
Show file tree
Hide file tree
Showing 6 changed files with 5,243 additions and 1,476 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"db:migrate": "pnpm db:create",
"electric:up": "pnpm electric-sql with-config \"pnpm pg-migrations apply --database {{ELECTRIC_PROXY}} --directory ./db/migrations\"",
"electric:migrate": "pnpm electric:up && pnpm electric:client",
"electric:client": "pnpm electric-sql generate --client-path ./packages/frontend/src/generated/client && pnpm frontend client:complete",
"electric:client": "pnpm frontend client:generate",
"client:ts": "typed-openapi ./packages/backend/openapi.json --output ./packages/frontend/src/api.gen.ts",
"client:json": "pnpm backend dev --create-only",
"client:generate": "pnpm client:json && pnpm client:ts",
Expand All @@ -20,6 +20,7 @@
"keywords": [],
"author": "",
"devDependencies": {
"prisma": "^4.8.1",
"@biomejs/biome": "1.6.4",
"@databases/pg-migrations": "^5.0.3",
"@pandabox/prettier-plugin": "^0.1.0",
Expand Down
1 change: 1 addition & 0 deletions packages/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"eslint": "^8.57.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.5",
"prisma": "^4.8.1",
"postcss": "^8.4.38",
"typescript": "^5.4",
"vite": "^5.1.6",
Expand Down
Loading

0 comments on commit 8460103

Please sign in to comment.