Add new build and database setup scripts to package.json for production

This commit is contained in:
2025-08-19 23:21:11 +01:00
parent 3704a70575
commit a40a2c022d
9 changed files with 896 additions and 0 deletions

View File

@ -7,11 +7,15 @@
"dev": "vite",
"build": "tsc && vite build",
"build:dev": "tsc && vite build --mode development",
"build:api": "tsc src/server.ts --outDir dist --target es2020 --module commonjs --esModuleInterop --allowSyntheticDefaultImports --resolveJsonModule --skipLibCheck",
"start:api": "node dist/server.js",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"db:generate": "drizzle-kit generate",
"db:migrate": "drizzle-kit migrate",
"db:migrate:prod": "drizzle-kit migrate --config=drizzle.config.production.ts",
"db:studio": "drizzle-kit studio",
"db:setup:prod": "node scripts/setup-production-db.js",
"create-superuser": "node scripts/create-superuser.js",
"create-default-superuser": "node scripts/create-default-superuser.js",
"setup-oliver": "node scripts/setup-oliver-admin.js"