From 95af0ea1fb45b1e271d12a8bff9ee3b5e8ab26ea Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 14 Dec 2022 09:19:38 +0100 Subject: [PATCH] Enable auto-reload for express server --- package-lock.json | 20 +++++++++++++++++++- packages/server/package.json | 5 +++-- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 956cc12..746738c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6544,6 +6544,23 @@ "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==", "dev": true }, + "node_modules/noderel": { + "version": "1.0.13", + "resolved": "https://registry.npmjs.org/noderel/-/noderel-1.0.13.tgz", + "integrity": "sha512-EvHkHAIA00xrs5cgdaTfxLefd12sdgW5y2aOAY6jCs2kmI75+0Y9cgsLLtQievgG2Y1vmPQcpumrqASBx7IIPg==", + "dev": true, + "dependencies": { + "chokidar": "^3.5.3", + "minimist": "^1.2.6", + "tree-kill": "^1.2.2" + }, + "bin": { + "noderel": "bin/cli" + }, + "engines": { + "node": ">=12.0.0" + } + }, "node_modules/normalize-package-data": { "version": "2.5.0", "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", @@ -9678,7 +9695,8 @@ "express": "^4.18.2" }, "devDependencies": { - "@types/express": "^4.17.15" + "@types/express": "^4.17.15", + "noderel": "^1.0.13" } } } diff --git a/packages/server/package.json b/packages/server/package.json index b5cc395..4e50ded 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -5,12 +5,13 @@ "description": "A server for Storing ConnectForce Savegames", "author": "Manuel Thalmann ", "scripts": { - "start": "node ./src/main.js" + "start": "noderel -e ./src/main.js" }, "dependencies": { "express": "^4.18.2" }, "devDependencies": { - "@types/express": "^4.17.15" + "@types/express": "^4.17.15", + "noderel": "^1.0.13" } }