Skip to content

Commit d247bfd

Browse files
committed
chore(database): make drizzle-orm a peerdependency
1 parent 0f65358 commit d247bfd

File tree

3 files changed

+24
-9
lines changed

3 files changed

+24
-9
lines changed

package-lock.json

Lines changed: 14 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/database/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
## ⚙️ Installation
66

77
```bash
8-
npm install @proconnect-gouv/proconnect.identite.database
8+
npm install @proconnect-gouv/proconnect.identite.database drizzle-orm
99
```
1010

1111
## 📖 Usage

packages/database/package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,24 @@
3737
"test": "npm run test:unit src/**/*.test.ts",
3838
"test:unit": "tsx --test --test-reporter=spec"
3939
},
40-
"dependencies": {
41-
"drizzle-orm": "^0.44.5"
42-
},
4340
"devDependencies": {
4441
"@electric-sql/pglite": "^0.3.8",
4542
"@proconnect-gouv/proconnect.devtools.typescript": "1.0.0",
4643
"@types/pg": "^8.15.5",
4744
"drizzle-kit": "^0.31.4",
45+
"drizzle-orm": "^0.44.6",
4846
"pg": "^8.16.3",
4947
"tsx": "^4.20.3",
5048
"zx": "^8.5.5"
5149
},
50+
"peerDependencies": {
51+
"drizzle-orm": ">=0.44"
52+
},
53+
"peerDependenciesMeta": {
54+
"drizzle-orm": {
55+
"optional": true
56+
}
57+
},
5258
"publishConfig": {
5359
"access": "public",
5460
"provenance": true

0 commit comments

Comments
 (0)