tsx
tsx copied to clipboard
Add files to be watched
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
Any ideas on how to add this? I can help