Simple tool to run a command when a file changes for tsx watch
npx jsr add @jellydn/tsw-watch
More usage at @jellydn/tsw-watch - JSR
tsx-watch ./file.ts
To exclude files from being watched, pass in a path or glob to the --ignore flag:
tsx-watch --ignore ./ignore-me.js --ignore ./ignore-me-too.js ./file.ts
tsx-watch --on-change "npm run build" ./file.ts
This package also provides a pre-commit hook that will run the biome command before committing.
pre-commit install --hook-type pre-push
👤 Huynh Duc Dung
- Website: https://productsway.com/
- Twitter: @jellydn
- Github: @jellydn
Give a ⭐️ if this project helped you!