Skip to content

Commit 0d3416c

Browse files
authored
fix(db-postgres): missing types for db.pool by moving @types/pg from devDependencies to dependencies (#8556)
Fixes lack of types in installed project: ![CleanShot 2024-10-04 at 19 18 58@2x](https://github.com/user-attachments/assets/e7c519ee-72fd-424b-8f6c-41032322fa5e) Since we expose stuff from @types/pg to the end user, we need it to be installed in the end users project => move to dependencies.
1 parent 0128eed commit 0d3416c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/db-postgres/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
},
4949
"dependencies": {
5050
"@payloadcms/drizzle": "workspace:*",
51+
"@types/pg": "8.10.2",
5152
"console-table-printer": "2.11.2",
5253
"drizzle-kit": "0.23.2-df9e596",
5354
"drizzle-orm": "0.32.1",
@@ -59,7 +60,6 @@
5960
"devDependencies": {
6061
"@hyrious/esbuild-plugin-commonjs": "^0.2.4",
6162
"@payloadcms/eslint-config": "workspace:*",
62-
"@types/pg": "8.10.2",
6363
"@types/to-snake-case": "1.0.0",
6464
"esbuild": "0.23.1",
6565
"payload": "workspace:*"

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)