Article
👍1
Tired of writing separate watch scripts for Bun, Deno, and Node?
@rabbx/overseer is a tiny, zero-dep library that handles file watching + graceful process restarts across all 3 runtimes.
Why Overseer?
Most tools are runtime-locked. Overseer auto-detects your runtime and just works.
Features
Glob support:
include: ['src/**/*.ts'],exclude: ['**/*.test.ts']Build before restart:
onBeforeReload: () => $bun x tsc``Smart debounce: Waits 1s after last save to restart
Cluster safe: Only primary process watches
TypeScript first: Full types included
https://github.com/rabbxdev/overseer
30s Setup
import { enableWatchReload } from '@rabbx/overseer';
enableWatchReload('./src', {
include: ['**/*.ts'],
restartDelay: 1000,
onBeforeReload: async () => await $`bun x tsc`
});
Comments (0)
Login to post a comment.