{
  "watch": ["src"],
  "ext": "ts,json",
  "ignore": ["src/**/*.test.ts"],
  "exec": "ts-node ./src/index.ts"
}

2024 Update - Use Bun instead

Depending on your stack, you might be able to just use Bun. Most modern frameworks will support using bun e.g. solidstart, nextjs, svelte, and astro.

bun --watch index.tsx