Move rimraf into prestart

This commit is contained in:
Ben Woodward 2019-04-11 20:41:09 +01:00
parent 6db8e518f4
commit 911edff308
1 changed files with 2 additions and 1 deletions

View File

@ -7,8 +7,9 @@
"build": "tsc -p tsconfig.build.json", "build": "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": "rimraf dist && concurrently --names \"NODEMON,TSC\" --handle-input \"wait-on dist/main.js && nodemon\" \"tsc -w -p tsconfig.build.json\" ", "start:dev": "concurrently --names \"NODEMON,TSC\" --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:dev": "rimraf dist",
"prestart:prod": "rimraf dist && npm run build", "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",