Skip to content

Commit

Permalink
fix: add missing pg dev dependency for drizzle-studio (#1748)
Browse files Browse the repository at this point in the history
Co-authored-by: juliusmarminge <julius0216@outlook.com>
  • Loading branch information
aaronmallen and juliusmarminge committed Feb 22, 2024
1 parent 1afc8c8 commit 17c2a5e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/smart-pumpkins-compare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-t3-app": patch
---

add missing `pg` dev dependency when using postgres drizzle option, required for `drizzle-studio`
1 change: 1 addition & 0 deletions cli/src/installers/dependencyVersionMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const dependencyVersionMap = {
mysql2: "^3.6.1",
"@planetscale/database": "^1.11.0",
postgres: "^3.4.3",
pg: "^8.11.3",
"@types/better-sqlite3": "^7.6.6",
"better-sqlite3": "^9.0.0",

Expand Down
1 change: 1 addition & 0 deletions cli/src/installers/drizzle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const drizzleInstaller: Installer = ({
const devPackages: AvailableDependencies[] = ["drizzle-kit"];
if (databaseProvider === "planetscale") devPackages.push("mysql2");
if (databaseProvider === "sqlite") devPackages.push("@types/better-sqlite3");
if (databaseProvider === "postgres") devPackages.push("pg");

addPackageDependency({
projectDir,
Expand Down

0 comments on commit 17c2a5e

Please sign in to comment.