{"library":"ts-watch","type":"library","category":null,"description":"ts-watch is a wrapper around the TypeScript compiler (tsc) that adds a --onSuccess COMMAND argument to run a command after every successful compilation. It is a fork of tsc-watch with fixes for macOS compatibility. Version 6.2.0 is the latest stable release, with periodic updates. Unlike raw tsc --watch, it provides lifecycle hooks (onSuccess, onFirstSuccess, onFailure, onCompilationComplete) to restart servers or run tests. It uses the locally installed TypeScript compiler and does not modify compilation behavior.","language":"javascript","status":"active","version":"1.0.8","tags":["javascript","TypeScript"],"last_verified":"Fri May 01","install":[{"cmd":"npm install ts-watch","imports":["npx ts-watch","ts-watch --onSuccess \"node dist/index.js\"","ts-watch --onFirstSuccess \"echo first success\"","ts-watch --onFailure \"echo compilation failed\""]},{"cmd":"yarn add ts-watch","imports":[]},{"cmd":"pnpm add ts-watch","imports":[]}],"homepage":null,"github":"https://github.com/gilamran/tsc-watch","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/ts-watch","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}