chore(migrations): update migration command for production environment (#459)

This commit is contained in:
Corentin Thomasset
2025-08-09 02:07:40 +02:00
committed by GitHub
parent 7d755d0981
commit f20559e95d
2 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@papra/app-server": patch
---
Removed dev-dependency needed in production build

View File

@@ -12,13 +12,14 @@
"dev": "tsx watch --env-file-if-exists=.env src/index.ts | crowlog-pretty",
"build": "pnpm esbuild --bundle src/index.ts --platform=node --packages=external --format=esm --outfile=dist/index.js --minify",
"start": "node dist/index.js",
"start:with-migrations": "pnpm migrate:up && pnpm start",
"start:with-migrations": "pnpm migrate:up:prod && pnpm start",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"test": "vitest run",
"test:watch": "vitest watch",
"typecheck": "tsc --noEmit",
"migrate:up": "tsx --env-file-if-exists=.env src/scripts/migrate-up.script.ts | crowlog-pretty",
"migrate:up:prod": "tsx src/scripts/migrate-up.script.ts",
"migrate:push": "drizzle-kit push",
"migrate:create": "sh -c 'drizzle-kit generate --name \"$1\" && tsx --env-file-if-exists=.env src/scripts/create-migration.ts \"$1\" | crowlog-pretty' --",
"db:studio": "drizzle-kit studio",