0.1.1 • Published 8 months ago

bun-build-watcher v0.1.1

Weekly downloads
-
License
MIT OR Apache-2.0
Repository
github
Last release
8 months ago

bun-build-watcher

Bun builder plugin. Will watch and redo the build when file change.

Look for a -w in the argv.

e.g., bun run my-build.ts -w

my-build.ts

import {buildWatcher} from "bun-build-watcher";


await Bun.build({
	entrypoints: ['./src/main.ts'],
	outdir: './content/js',
	plugins: [buildWatcher({ delayMs: 200 })]
});
export interface WatchOptions {
	/** default: 100 */
	delayMs?: number,
	/** default: 'src/' */
	path?: PathLike
}

Very simple for now, if you need more, let me know.

0.1.1

8 months ago

0.1.0

8 months ago