"scripts": {
"up": "npx prisma migrate dev --name \"init\"",
"start": "pm2 start dist/server/api.js",
- "build": "npx webpack && npx tsc",
+ "build:prod": "npx tsc",
+ "postbuild:prod": "cp -R public dist/",
"migrate": "npx ts-node ./node_modules/knex/bin/cli.js migrate:latest",
- "migrate:prod": "NODE_ENV=production npx ts-node ./node_modules/knex/bin/cli.js migrate:up",
+ "migrate:prod": "NODE_ENV=production npx ts-node ./node_modules/knex/bin/cli.js migrate:latest",
"seed": "npx ts-node ./node_modules/knex/bin/cli.js seed:run",
"seed:prod": "NODE_ENV=production npm run seed",
"dev:client": "npx webpack -w",