-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore "./*.json" should ignore json files from current working directory #1784
Ignore "./*.json" should ignore json files from current working directory #1784
Comments
What happens if you remove json from the ext list? |
When I remove
Summing up, all JSON files are ignored by nodemon. Regards |
Oh, to try to clarify, are you trying to ignore json files in the CWD, but still watch json files that are nested further down? |
Fixes: #1784 This fixes the watch/ignore rules where the config is ignoring the relative local path of ./ - this fix was in place for the positive (watch) test but not patched for the negative (ignore).
Exactly. This is because |
Fixes: #1784 This fixes the watch/ignore rules where the config is ignoring the relative local path of ./ - this fix was in place for the positive (watch) test but not patched for the negative (ignore).
This fix has been merged into master and is being built and deployed now. Look out for the next version shortly. |
Hello,
Thanks for great software :) I noticed a problem with ignore files from current working directory. Nodeman restarts my application unexpectedly despite ignore "./*.json".
nodemon -v
: 2.0.5node -v
: v12.18.4Ubuntu 20.04.1 LTS
on Kernel5.4.0-51-generic
andyrbell/mountebank:2.3.2
with addedRUN npm install -g nodemon
to localDockerfile
nodemon --verbose config.json.ejs
nodeman.json
Expected behaviour
touch anyfile.json
— nodeman should ignore this changetouch any-not-ignored-dir/anyfile.json
— nodeman restarts mountebank as expectedActual behaviour
touch anyfile.json
— nodeman restarts mountebank unexpectedlyLogs present the problem
Now I'm execute this command:
touch anyfile.json
(nodeman restarts mountebank unexpectedly)Now I'm execute this command:
touch any-not-ignored-dir/anyfile.json
(nodeman restarts mountebank as expected)Regards
Piotr Minkina
The text was updated successfully, but these errors were encountered: