Skip to content

Commit

Permalink
chore(scripts): switch migrate script running back to tsx lib
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcnk committed Feb 13, 2024
1 parent 91c30a5 commit f92a67e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"dev": "bunx vite dev",
"build": "bunx vite build",
"preview": "bunx vite preview",
"start": "bun run db:migrate && node build/index.js",
"postinstall": "bun run db:migrate",
"start": "npm run db:migrate && node build/index.js",
"postinstall": "npm run db:migrate",
"test": "bun run test:integration && bun run test:unit",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
Expand All @@ -17,7 +17,7 @@
"test:unit": "vitest",
"db:generate": "drizzle-kit generate:sqlite",
"db:push": "drizzle-kit push:sqlite",
"db:migrate": "bun migrate.ts"
"db:migrate": "tsx scripts/migrate.ts"
},
"devDependencies": {
"@playwright/test": "^1.28.1",
Expand Down
2 changes: 1 addition & 1 deletion migrate.ts → scripts/migrate.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dotenv/config';

import { migrate } from 'drizzle-orm/libsql/migrator';
import { db } from './src/lib/db';
import { db } from '../src/lib/db';

const main = async () => {
try {
Expand Down

0 comments on commit f92a67e

Please sign in to comment.