From 97fc58671f076b1871c1f96a14c583767ce9ca13 Mon Sep 17 00:00:00 2001 From: Kevin J Hoerr Date: Mon, 9 Dec 2019 11:40:48 -0500 Subject: Change start script to start:dev with watcher There is currently no prod start command - this can be adopted later when desired. --- package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index 7b468f7..9820187 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ }, "main": "build/index.js", "scripts": { - "start": "tsc && node ./build/index.js", + "start:dev": "tsc-watch --onSuccess \"node ./build/index.js\"", "tsc": "tsc" }, "author": "Kevin J Hoerr ", @@ -23,10 +23,11 @@ "express-winston": "^4.0.1", "jsdom": "^15.2.1", "mongodb": "^3.3.5", - "typescript": "^3.7.2", + "typescript": "^3.7.3", "winston": "^3.2.1" }, "devDependencies": { - "prettier": "^1.19.1" + "prettier": "^1.19.1", + "tsc-watch": "^4.0.0" } } -- cgit