From e2d869bb1971a633fc374b49c8b5e002504f965d Mon Sep 17 00:00:00 2001 From: Cassie Esposito Date: Thu, 19 May 2022 19:10:51 -0700 Subject: [PATCH] Added support for npm run watch to automatically reset server during development. --- package.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index fce51228..cfa5bad4 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,11 @@ "version": "2.0.14", "description": "Self-hosted audiobook and podcast server", "main": "index.js", + "watch": { + "dev": "server/{*,*/*}/*.js" + }, "scripts": { + "watch": "npm-watch", "dev": "node index.js", "start": "node index.js", "client": "cd client && npm install && npm run generate", @@ -53,5 +57,7 @@ "watcher": "^1.2.0", "xml2js": "^0.4.23" }, - "devDependencies": {} -} \ No newline at end of file + "devDependencies": { + "npm-watch": "^0.11.0" + } +}