mirror of
https://github.com/papra-hq/papra.git
synced 2025-12-21 12:09:39 -06:00
chore(migrations): update migration command for production environment (#459)
This commit is contained in:
committed by
GitHub
parent
7d755d0981
commit
f20559e95d
5
.changeset/spotty-shoes-sip.md
Normal file
5
.changeset/spotty-shoes-sip.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@papra/app-server": patch
|
||||
---
|
||||
|
||||
Removed dev-dependency needed in production build
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user