From 6fbc5e35c726dd830b44fb45ac900a11566ca3b3 Mon Sep 17 00:00:00 2001 From: Omar Hussain Date: Tue, 10 Sep 2019 21:50:26 -0600 Subject: [PATCH] modified 'start' script so that changes to files in 'lib' trigger transpiling to 'dist' and server restart --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 845d6d0..38b5c31 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "lib/index.js", "scripts": { "build": "babel lib -d dist", - "start": "npm run build && nodemon dist/index.js", + "start": "nodemon --watch lib --exec npm run serve", "serve": "npm run build && node dist/index.js", "test": "npm run build && mocha --require @babel/register" },