mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
* initial support * add types * fix comment * fix types * bigfix up * more fixes * fix some encoding support for watch * fix rename event * fixup * fix latin1 * add fs_events, still failing some tests * fixuup * remove unecesary check * readd tests ops * this is necessary? just testing CI/CD weird errors * just use dupe here * cleanup and fix deinit * fix zig upgrade
8 lines
181 B
JavaScript
8 lines
181 B
JavaScript
import fs from "fs";
|
|
fs.watch(import.meta.path, { signal: AbortSignal.timeout(4000) })
|
|
.on("error", err => {
|
|
console.error(err.message);
|
|
process.exit(1);
|
|
})
|
|
.close();
|