Don't rebuild project on the start:prod command
rimraf dist before the build
This commit is contained in:
parent
aeab830d25
commit
d54bf6f8c2
|
|
@ -4,12 +4,11 @@
|
||||||
"description": "Nest TypeScript starter repository",
|
"description": "Nest TypeScript starter repository",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc -p tsconfig.build.json",
|
"build": "rimraf dist && tsc -p tsconfig.build.json",
|
||||||
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
||||||
"start": "ts-node -r tsconfig-paths/register src/main.ts",
|
"start": "ts-node -r tsconfig-paths/register src/main.ts",
|
||||||
"start:dev": "concurrently --handle-input \"wait-on dist/main.js && nodemon\" \"tsc -w -p tsconfig.build.json\" ",
|
"start:dev": "concurrently --handle-input \"wait-on dist/main.js && nodemon\" \"tsc -w -p tsconfig.build.json\" ",
|
||||||
"start:debug": "nodemon --config nodemon-debug.json",
|
"start:debug": "nodemon --config nodemon-debug.json",
|
||||||
"prestart:prod": "rimraf dist && npm run build",
|
|
||||||
"start:prod": "node dist/main.js",
|
"start:prod": "node dist/main.js",
|
||||||
"lint": "tslint -p tsconfig.json -c tslint.json",
|
"lint": "tslint -p tsconfig.json -c tslint.json",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue