From 914e09ade957bc549d669b72cedcaf8de69be41e Mon Sep 17 00:00:00 2001 From: Colin Rotherham Date: Tue, 14 Mar 2023 11:14:19 +0000 Subject: [PATCH] Prevent nodemon restart on component `*.mjs` Only Node.js review app `*.mjs` files should restart the server --- app/nodemon.json | 2 +- docs/contributing/tasks.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/nodemon.json b/app/nodemon.json index 31edf1f6276..f159ce89f7a 100644 --- a/app/nodemon.json +++ b/app/nodemon.json @@ -1,5 +1,5 @@ { - "watch": ["./src", "../src/govuk"], + "watch": ["./src", "../src/govuk/**/*.{json,yaml}"], "ignore": ["**/*.test.*"], "ext": "mjs,json,yaml", "quiet": true diff --git a/docs/contributing/tasks.md b/docs/contributing/tasks.md index e73fb25b072..ad491c52ace 100644 --- a/docs/contributing/tasks.md +++ b/docs/contributing/tasks.md @@ -24,7 +24,7 @@ npm scripts are defined in `package.json`. These trigger a number of Gulp tasks. **`npm run serve` will do the following:** -- start up Express, restarting when `.js` files change +- start up Express, restarting when `.mjs`, `.json` or `.yaml` files change **`npm run build:public` will do the following:**