remy / nodemon

Monitor for any changes in your node.js application and automatically restart the server - perfect for development

Home Page:http://nodemon.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

jlguenego opened this issue · comments

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.

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