Skip to content

Commit

Permalink
feat: set electric client in its own package
Browse files Browse the repository at this point in the history
  • Loading branch information
ledouxm committed Apr 24, 2024
1 parent a8c9338 commit 6cca0ba
Show file tree
Hide file tree
Showing 14 changed files with 14,083 additions and 103 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"frontend": "pnpm --filter @cr-vif/frontend",
"backend": "pnpm --filter @cr-vif/backend",
"electric-client": "pnpm --filter @cr-vif/electric-client",
"db:create": "pnpm backend migration:create",
"db:migrate": "pnpm db:create",
"electric:up": "pnpm electric-sql with-config \"pnpm pg-migrations apply --database {{ELECTRIC_PROXY}} --directory ./db/migrations\"",
Expand All @@ -26,7 +27,7 @@
"@pandabox/prettier-plugin": "^0.1.0",
"@playwright/test": "^1.43.0",
"@types/node": "^20.11.28",
"electric-sql": "^0.9.5",
"electric-sql": "^0.10.1",
"prettier": "^3.2.5",
"typed-openapi": "^0.4.1"
}
Expand Down
249 changes: 249 additions & 0 deletions packages/electric-client/package-lock.json

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

43 changes: 43 additions & 0 deletions packages/electric-client/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"name": "@cr-vif/electric-client",
"version": "1.0.0",
"description": "",
"scripts": {
"generate": "pnpm electric-sql generate && pnpm complete",
"complete": "vite-node ./scripts/completePrismaClient.ts",
"build": "tsup src/index.ts --dts --format cjs,esm"
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"source": "./src/index.ts",
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"./development": {
"import": {
"default": "./src/index.ts",
"types": "./src/index.ts"
}
}
},
"keywords": [],
"author": "",
"license": "ISC",
"peerDependencies": {
"@prisma/client": "^4.8.1",
"electric-sql": "^0.10.1"
},
"devDependencies": {
"prisma": "^4.8.1",
"vite-node": "^1.4.0"
}
}
Loading

0 comments on commit 6cca0ba

Please sign in to comment.