tsx icon indicating copy to clipboard operation
tsx copied to clipboard

Add files to be watched

Open bmaupin opened this issue 2 years ago • 1 comments

Feature request

I would like to be able to add files to be watched in addition to the default, for example to watch the .env file.

Why?

I use a .env file with dotenv for environment variables. Often I'll change a value in .env during runtime to test something (e.g. enable/disable feature flag).

With nodemon I'm using:

nodemon --watch src --watch .env src/index.ts

It would be nice to be able to do this with tsx as well.

Alternatives

My current alternative is nodemon+ts-node+swc. But tsx seems like a more convenient all-in-one solution.

Additional context

No response

bmaupin avatar Feb 03 '23 17:02 bmaupin

Any ideas on how to add this? I can help

clearly-outsane avatar Nov 14 '23 08:11 clearly-outsane