Simple tool to run a command when a file changes for tsx watch
npx jsr add @jellydn/tsw-watchMore usage at @jellydn/tsw-watch - JSR
tsx-watch ./file.tsTo 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.tstsx-watch --on-change "npm run build" ./file.tsThis 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!