node-dev icon indicating copy to clipboard operation
node-dev copied to clipboard

Ability to watch .pnp.cjs or other files that are not required but affect app startup

Open dobesv opened this issue 10 months ago • 0 comments

I have noticed that the app is not restarted if I change .pnp.cjs, which is injected by yarn via NODE_OPTIONS.

It would be nice if node-dev was aware of the -r and --require options provided in NODE_OPTIONS and added them to the watchlist automatically on process start or restart.

It could also be handy if we could manually specify some file wildcards to add to the watchlist on each start. In principle if the first idea is not implemented we could workaround it with this second one.

dobesv avatar May 02 '25 19:05 dobesv