Closed joshkel closed 2 years ago
I'm not sure if this is the correct issue, but I've got a problem with this behaviour too. My package.json
has the "main" field set to "lib/mod.js". When I run nodemon lib/run.js
, nodemon tries to execute the command node lib/run.js lib/mod.js
which obviously fails. How is this the intended behaviour? Have I done something wrong?
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. Thank you for contributing <3
Automatically closing this issue due to lack of activity
As discussed in #1996, it would be nice if Nodemon's startup messages included text indicating when it's using the script from package.json's main or scripts.start.