{"id":26179980,"url":"https://github.com/jellydn/tsx-watch","last_synced_at":"2026-04-22T21:40:38.941Z","repository":{"id":232404597,"uuid":"784261500","full_name":"jellydn/tsx-watch","owner":"jellydn","description":"[WIP] Simple tool to run a command when a file changes for tsx watch","archived":false,"fork":false,"pushed_at":"2024-12-08T22:54:26.000Z","size":21,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-08T23:27:20.965Z","etag":null,"topics":["runner","tsx","typescript","typescript-runtime"],"latest_commit_sha":null,"homepage":"https://jsr.io/@jellydn/tsw-watch","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jellydn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["jellydn"],"ko_fi":"dunghd","buy_me_a_coffee":"dunghd","polar":"jellydn"}},"created_at":"2024-04-09T14:00:31.000Z","updated_at":"2024-04-10T03:10:45.000Z","dependencies_parsed_at":"2024-05-06T12:28:56.384Z","dependency_job_id":"3fef1e05-a693-4ff4-8176-bd5d2f87ebab","html_url":"https://github.com/jellydn/tsx-watch","commit_stats":null,"previous_names":["jellydn/tsx-watch"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jellydn%2Ftsx-watch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jellydn%2Ftsx-watch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jellydn%2Ftsx-watch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jellydn%2Ftsx-watch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jellydn","download_url":"https://codeload.github.com/jellydn/tsx-watch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243119644,"owners_count":20239321,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["runner","tsx","typescript","typescript-runtime"],"created_at":"2025-03-11T21:54:01.969Z","updated_at":"2026-04-22T21:40:33.893Z","avatar_url":"https://github.com/jellydn.png","language":"TypeScript","funding_links":["https://github.com/sponsors/jellydn","https://ko-fi.com/dunghd","https://buymeacoffee.com/dunghd","https://polar.sh/jellydn","https://paypal.me/dunghd","https://www.buymeacoffee.com/dunghd"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eWelcome to tsx-watch 👋\u003c/h1\u003e\n\n\u003e Simple tool to run a command when a file changes for [tsx watch](https://github.com/privatenumber/tsx#watch-mode)\n\n## Usage\n\n### Install\n\n\n```sh\nnpx jsr add @jellydn/tsw-watch\n```\n\nMore usage at [@jellydn/tsw-watch - JSR](https://jsr.io/@jellydn/tsw-watch@0.1.0)\n\n### Run file and automatically rerun on changes:\n\n```sh\ntsx-watch ./file.ts\n```\n\n\n### Ignore files from watch\nTo exclude files from being watched, pass in a path or glob to the --ignore flag:\n\n```sh\ntsx-watch --ignore ./ignore-me.js --ignore ./ignore-me-too.js ./file.ts\n```\n\n### Re-run command on change\n\n```sh\ntsx-watch --on-change \"npm run build\" ./file.ts\n```\n\n## Pre-commit\n\nThis package also provides a pre-commit hook that will run the biome command before committing.\n```sh\npre-commit install --hook-type pre-push\n```\n\n## Author\n\n👤 **Huynh Duc Dung**\n\n- Website: https://productsway.com/\n- Twitter: [@jellydn](https://twitter.com/jellydn)\n- Github: [@jellydn](https://github.com/jellydn)\n\n## Show your support\n\nGive a ⭐️ if this project helped you!\n\n[![kofi](https://img.shields.io/badge/Ko--fi-F16061?style=for-the-badge\u0026logo=ko-fi\u0026logoColor=white)](https://ko-fi.com/dunghd)\n[![paypal](https://img.shields.io/badge/PayPal-00457C?style=for-the-badge\u0026logo=paypal\u0026logoColor=white)](https://paypal.me/dunghd)\n[![buymeacoffee](https://img.shields.io/badge/Buy_Me_A_Coffee-FFDD00?style=for-the-badge\u0026logo=buy-me-a-coffee\u0026logoColor=black)](https://www.buymeacoffee.com/dunghd)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjellydn%2Ftsx-watch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjellydn%2Ftsx-watch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjellydn%2Ftsx-watch/lists"}