-
-
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
Watch .cjs files by default #1954
Comments
Not sure why madness. The project was created over 11 years ago. I've personally never used .cjs (nor .mjs, but I got a PR for support). I'll leave this open for a while and if there's interest from others via 👍 then we can add it in. Otherwise it's a personal config setting. |
Sure, I understand. There's a reason for everything. It just seemed that way looking at it today. It's a noob of a noob trap as it is. I figured it what it was in about 10 minutes (mixture of .js and .cjs in my project), but I can imagine quite a bit of frustration being caused by it. I guess there are a host of other extensions that -could- be included. .jsx, .ts and .tsx come to mind. |
@RobertSandiford A quick solution would be to add a |
@lorand-horvath or --ext=cjs,js But just unnecessary to make people do that, hence the thread. |
@RobertSandiford Agreed, cjs could be added as default, I don't think it would create any issues. |
@RobertSandiford @remy It seems strange, but I've just tested the inline option below and it doesn't work with latest nodemon 2.0.15 |
Space not the |
Yes, you are correct |
This issue has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and @remy will (try!) to follow up. |
Am reviewing. Not totally sure about the PR (just to buy a little more time from stale-bot) |
Automatically closing this issue due to lack of activity |
"By default, nodemon looks for files with the .js, .mjs, .coffee, .litcoffee, and .json"
This seems like madness! : )
In an ES6 project I often have to use a .cjs file here or there. If nodemon is watching .mjs files by default why not .cjs files?
The text was updated successfully, but these errors were encountered: