From e5f1069fe9b153ab91eeb879118e9477457cde5e Mon Sep 17 00:00:00 2001 From: David Mehren Date: Thu, 23 Sep 2021 23:03:22 +0200 Subject: [PATCH] Cleanup dist folder before starting For some reason, files from the dist folder get used for execution even when running with ts-node. This adds a cleanup step before starting the app. Signed-off-by: David Mehren --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 73b577eef..3369822ad 100644 --- a/package.json +++ b/package.json @@ -9,9 +9,9 @@ "build": "rimraf dist && nest build", "format": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\"", "format:fix": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", - "start": "nest start", - "start:dev": "nest start --watch", - "start:debug": "nest start --debug --watch", + "start": "rimraf dist && nest start", + "start:dev": "rimraf dist && nest start --watch", + "start:debug": "rimraf dist && nest start --debug --watch", "start:prod": "node dist/main", "lint": "eslint \"{src,apps,libs,test}/**/*.ts\"", "lint:fix": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",