I have the following code structure:
--src
----config
------env
--------development.env
--------index.js
Here's my nodemon.json file:
{
"watch": ["src"],
"events": {
"start": "cls || clear"
}
}
It works when I make a change to index.js file, but when a change made in development.env nodemon doesn't get restarted.
I tried the following to make it works but no success:
"watch": ["src", "src/config/env/development.env"]