Add data migration to npm scripts

This commit is contained in:
Jorge Vargas 2025-05-10 00:36:07 -06:00
parent 5c4f46a41e
commit a5fde1b6c8
2 changed files with 6 additions and 3 deletions

View file

@ -3,10 +3,10 @@
"type": "module",
"version": "1.0.0",
"scripts": {
"start": "npm run dev",
"dev": "prisma generate --sql && astro dev",
"build": "prisma generate --sql && npm run paraglide:compile && astro build",
"dev": "astro dev",
"build": "npm run prisma:migrate && npm run paraglide:compile && astro build",
"preview": "astro preview",
"prisma:build": "prisma migrate deploy && prisma generate --sql && tsx ./prisma/migrate.ts",
"paraglide:compile": "paraglide-js compile --project ./project.inlang --outdir ./src\\paraglide"
},
"dependencies": {
@ -36,6 +36,7 @@
"slugify": "^1.6.6",
"superstruct": "^2.0.2",
"tailwindcss": "^4.0.7",
"tsx": "^4.19.4",
"typescript": "^5.6.2",
"use-immer": "^0.11.0"
},