From 1c34b2ed4c90312c77d2d1ce1afd73e0d3e2828c Mon Sep 17 00:00:00 2001 From: Evan Sizemore Date: Mon, 25 Dec 2023 19:11:37 -0500 Subject: [PATCH] chore: update drizzle-orm and drizzle-kit --- cli/package.json | 4 ++-- cli/src/installers/dependencyVersionMap.ts | 5 ++--- cli/src/installers/drizzle.ts | 6 +++--- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/cli/package.json b/cli/package.json index 37bd1dc81c..97c0481cd5 100644 --- a/cli/package.json +++ b/cli/package.json @@ -76,8 +76,8 @@ "@types/gradient-string": "^1.1.2", "@types/inquirer": "^9.0.3", "@types/node": "^18.17.0", - "drizzle-kit": "^0.20.7", - "drizzle-orm": "^0.28.5", + "drizzle-kit": "^0.20.8", + "drizzle-orm": "^0.29.2", "next": "^14.0.3", "next-auth": "^4.24.5", "prettier": "^3.1.0", diff --git a/cli/src/installers/dependencyVersionMap.ts b/cli/src/installers/dependencyVersionMap.ts index 32f1a69f70..3cf1eac569 100644 --- a/cli/src/installers/dependencyVersionMap.ts +++ b/cli/src/installers/dependencyVersionMap.ts @@ -13,9 +13,8 @@ export const dependencyVersionMap = { "@prisma/client": "^5.6.0", // Drizzle - "drizzle-orm": "^0.28.5", - "drizzle-kit": "^0.20.7", - "dotenv-cli": "^7.3.0", + "drizzle-orm": "^0.29.2", + "drizzle-kit": "^0.20.8", mysql2: "^3.6.1", "@planetscale/database": "^1.11.0", diff --git a/cli/src/installers/drizzle.ts b/cli/src/installers/drizzle.ts index 1b88e16ff6..411c94458f 100644 --- a/cli/src/installers/drizzle.ts +++ b/cli/src/installers/drizzle.ts @@ -13,7 +13,7 @@ export const drizzleInstaller: Installer = ({ }) => { addPackageDependency({ projectDir, - dependencies: ["drizzle-kit", "dotenv-cli", "mysql2"], + dependencies: ["drizzle-kit", "mysql2"], devMode: true, }); addPackageDependency({ @@ -54,8 +54,8 @@ export const drizzleInstaller: Installer = ({ const packageJsonContent = fs.readJSONSync(packageJsonPath) as PackageJson; packageJsonContent.scripts = { ...packageJsonContent.scripts, - "db:push": "dotenv drizzle-kit push:mysql", - "db:studio": "dotenv drizzle-kit studio", + "db:push": "drizzle-kit push:mysql", + "db:studio": "drizzle-kit studio", }; fs.copySync(configFile, configDest);