Add new build and database setup scripts to package.json for production
This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user