The nodemon doesn't watch files of application when path to directory where located application contains exclamation point.
version 1.12.1.
path to folder example: 'some-path/!node-example/node-application'
I have the same thing when i execute nodemon with the absolute path i doesn't watch any files
sudo nodemon -L /folder/directory/nodejsFile.js -V
The output will be '[nodemon] watching 0 files'
When i first go to the path and the only use the filename it sees my files
cd /folder/directory/
sudo nodemon -L nodejsFile.js -V
The output will be '[nodemon] watching 12 files'
Edit:
I think the bug is in the fact that nodemon is using process.cwd();
every where instead of getting the relative path with the executed file argument that you gave in
so in the match file and all the other files that are using proccess.cwd()
they need to use
use like in my examples above '/folder/directory/nodejsFile.js' or 'nodejsFile.js' to get the absolute path with something like path.dirname
https://github.com/remy/nodemon/blob/07e55cc35d45cf0f863031b3eabeed9fd58361bd/lib/monitor/match.js#L53
This path handling is intended behaviour.
Maybe create an new param where you can specify the path then ?
Most helpful comment
Maybe create an new param where you can specify the path then ?