refactor: move drizzle to shared

This commit is contained in:
syntaxbullet
2026-01-08 16:29:31 +01:00
parent 3f028eb76a
commit f92415b89c
10 changed files with 6 additions and 6 deletions

View File

@@ -9,8 +9,8 @@ COPY package.json bun.lock ./
RUN bun install --frozen-lockfile
# Install web project dependencies
COPY src/web/package.json src/web/bun.lock ./src/web/
RUN cd src/web && bun install --frozen-lockfile
COPY web/package.json web/bun.lock ./web/
RUN cd web && bun install --frozen-lockfile
# Copy source code
COPY . .

View File

@@ -8,7 +8,7 @@ BigInt.prototype.toJSON = function () {
export default defineConfig({
schema: "./shared/db/schema.ts",
out: "./drizzle",
out: "./shared/db/migrations",
dialect: "postgresql",
dbCredentials: {
url: env.DATABASE_URL,

View File

@@ -17,9 +17,9 @@
"db:push:local": "drizzle-kit push",
"dev": "bun --watch bot/index.ts",
"db:studio": "drizzle-kit studio --host 0.0.0.0",
"studio:remote": "bash scripts/remote-studio.sh",
"dashboard:remote": "bash scripts/remote-dashboard.sh",
"remote": "bash scripts/remote.sh",
"studio:remote": "bash shared/scripts/remote-studio.sh",
"dashboard:remote": "bash shared/scripts/remote-dashboard.sh",
"remote": "bash shared/scripts/remote.sh",
"test": "bun test"
},
"dependencies": {