From 9702a9bb678fc79c8080ec097b8f991ee18313ac Mon Sep 17 00:00:00 2001 From: Nathan Cho Date: Fri, 15 Oct 2021 01:27:21 +0900 Subject: [PATCH] Fix: Add nodemon legacy watch for windows Fix nodemon --watch not working on Docker Windows --- backend/package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/package.json b/backend/package.json index d44d131a..04bc3647 100644 --- a/backend/package.json +++ b/backend/package.json @@ -3,7 +3,9 @@ "version": "0.0.1", "private": true, "scripts": { - "start": "nodemon --watch . app.js" + "start": "npm run start:linux", + "start:linux": "nodemon --watch . app.js", + "start:windows": "nodemon --legacy-watch app.js" }, "dependencies": { "cookie-parser": "~1.4.4",