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.
This commit is contained in:
Alessio Gravili
2024-10-04 13:39:03 -04:00
committed by GitHub
parent 0128eedf70
commit 0d3416c96d
2 changed files with 4 additions and 4 deletions

View File

@@ -48,6 +48,7 @@
},
"dependencies": {
"@payloadcms/drizzle": "workspace:*",
"@types/pg": "8.10.2",
"console-table-printer": "2.11.2",
"drizzle-kit": "0.23.2-df9e596",
"drizzle-orm": "0.32.1",
@@ -59,7 +60,6 @@
"devDependencies": {
"@hyrious/esbuild-plugin-commonjs": "^0.2.4",
"@payloadcms/eslint-config": "workspace:*",
"@types/pg": "8.10.2",
"@types/to-snake-case": "1.0.0",
"esbuild": "0.23.1",
"payload": "workspace:*"