Skip to content

Commit

Permalink
chore: 🔧 update drizzle kit (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinWu098 authored May 20, 2024
1 parent cd42556 commit a2cb804
Show file tree
Hide file tree
Showing 3 changed files with 114 additions and 169 deletions.
7 changes: 3 additions & 4 deletions drizzle.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,17 @@ import type { Config } from "drizzle-kit";
dotenv.config();

const { DATABASE_URL } = process.env;

if (!DATABASE_URL) {
throw new Error(
"DATABASE_URL not found. Please ensure you have the DATABASE_URL variable defined inside of your environment configuration.",
);
}

export default {
schema: "./src/lib/db/schema.ts",
out: "./src/lib/db/migrations",
driver: "pg",
dialect: "postgresql",
dbCredentials: {
connectionString: DATABASE_URL,
url: DATABASE_URL,
},
} satisfies Config;
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"db:update": "pnpm generate && pnpm migrate",
"dev": "sst bind vite dev",
"format": "prettier --write .",
"generate": "drizzle-kit generate:pg --config=drizzle.config.ts",
"generate": "drizzle-kit generate",
"postinstall": "husky install && pnpm generate && svelte-kit sync",
"lint": "eslint --quiet --fix .",
"migrate": "pnpm tsx src/lib/db/migrate.ts",
Expand All @@ -27,8 +27,8 @@
"test:unit": "vitest"
},
"dependencies": {
"@iconify/json": "^2.2.160",
"@lucia-auth/adapter-drizzle": "^1.0.3",
"@iconify/json": "^2.2.208",
"@lucia-auth/adapter-drizzle": "^1.0.7",
"arctic": "^1.2.1",
"clsx": "^2.1.0",
"dotenv": "^16.4.5",
Expand All @@ -37,17 +37,17 @@
"lucia": "^3.1.1",
"pg": "^8.11.3",
"postgres": "3.4.3",
"svelty-picker": "^5.2.1",
"svelty-picker": "^5.2.7",
"tailwind-merge": "^2.2.1",
"tsx": "^4.7.2",
"unplugin-icons": "^0.18.1"
"unplugin-icons": "^0.18.5"
},
"devDependencies": {
"@commitlint/cli": "18.4.3",
"@commitlint/config-conventional": "18.4.3",
"@commitlint/types": "18.4.3",
"@playwright/test": "1.40.0",
"@skeletonlabs/skeleton": "^2.5.1",
"@skeletonlabs/skeleton": "^2.10.0",
"@skeletonlabs/tw-plugin": "^0.2.4",
"@sveltejs/adapter-auto": "2.1.1",
"@sveltejs/kit": "1.27.6",
Expand All @@ -57,33 +57,33 @@
"@types/pg": "^8.11.2",
"@typescript-eslint/eslint-plugin": "6.12.0",
"@typescript-eslint/parser": "6.12.0",
"autoprefixer": "^10.4.14",
"autoprefixer": "^10.4.19",
"aws-cdk-lib": "2.110.1",
"constructs": "10.3.0",
"cz-conventional-changelog": "3.3.0",
"daisyui": "^4.6.2",
"daisyui": "^4.11.1",
"devmoji": "2.3.0",
"dotenv": "^16.4.5",
"drizzle-kit": "0.20.17",
"drizzle-kit": "0.21.1",
"eslint": "8.54.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-import": "2.29.0",
"eslint-plugin-svelte": "2.35.1",
"husky": "8.0.3",
"lint-staged": "15.1.0",
"pg": "^8.11.3",
"postcss": "^8.4.24",
"postcss-load-config": "^4.0.1",
"postcss": "^8.4.38",
"postcss-load-config": "^4.0.2",
"prettier": "3.1.0",
"prettier-plugin-packagejson": "2.4.6",
"prettier-plugin-svelte": "3.1.2",
"prettier-plugin-tailwindcss": "^0.5.9",
"prettier-plugin-tailwindcss": "^0.5.14",
"sst": "2.36.6",
"svelte": "4.2.7",
"svelte-check": "3.6.2",
"svelte-kit-sst": "2.36.6",
"sveltekit-superforms": "^1.13.3",
"tailwindcss": "^3.3.2",
"sveltekit-superforms": "^1.13.4",
"tailwindcss": "^3.4.3",
"tslib": "2.6.2",
"typescript": "5.3.2",
"vite": "5.0.2",
Expand Down
Loading

0 comments on commit a2cb804

Please sign in to comment.