From 22d50082269e545a8cf6dfc103f50baf0c15399c Mon Sep 17 00:00:00 2001 From: Logan McAnsh Date: Tue, 24 Oct 2023 18:34:06 -0400 Subject: [PATCH] chore(example): watch and restart server when server.js changes Signed-off-by: Logan McAnsh --- example/package.json | 2 +- playground/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/package.json b/example/package.json index a4026d2d..b594e5e8 100644 --- a/example/package.json +++ b/example/package.json @@ -5,7 +5,7 @@ "type": "module", "scripts": { "build": "remix build", - "dev": "remix dev --manual -c \"node --enable-source-maps ./server.js\"", + "dev": "remix dev --manual -c \"node --watch-path ./server.js --enable-source-maps ./server.js\"", "start": "node --enable-source-maps ./server.js", "typecheck": "tsc" }, diff --git a/playground/package.json b/playground/package.json index 90076db1..dc9e1a21 100644 --- a/playground/package.json +++ b/playground/package.json @@ -7,7 +7,7 @@ "type": "module", "scripts": { "build": "remix build", - "dev": "remix dev --manual -c \"node --enable-source-maps ./server.js\"", + "dev": "remix dev --manual -c \"node --watch-path ./server.js --enable-source-maps ./server.js\"", "start": "node --enable-source-maps ./server.js", "lint": "eslint --cache --ignore-path .gitignore --fix .", "format": "prettier --write --ignore-path .gitignore .",