remy / nodemon

Monitor for any changes in your node.js application and automatically restart the server - perfect for development
http://nodemon.io/
MIT License
26.13k stars 1.72k forks source link

New Feature Request : adding a very simple way to handle node projects with ES Module #2184

Closed jlguenego closed 4 months ago

jlguenego commented 5 months ago

Many people struggle to find the good settings for ES Module project with node, in particular when using typescript

Disclaimer: I am the author of https://github.com/jlguenego/esbuild-watch-restart

This project allows what nodemon cannot do : handle a node project written in typescript and have to be built with ESM Module. The request is to do the same with nodemon.

The request is to add the following behavior in nodemon:

If package.json type = module Then
  instead of using ts-node, use esbuild
  (look at my project for an example of code)
Endif

I think instead of having many "nodemon" alternatives, this type of scenario should be understood by nodemon.

github-actions[bot] commented 5 months ago

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

github-actions[bot] commented 4 months ago

Automatically closing this issue due to lack of activity