@yigal/watch_runner
v2.1.0
Published
Module to add watch functionality to your node scripts. Usefull to move that logic away from your `package.json`
Readme
Watch Runner
Module to add watch functionality to your node scripts. Usefull to move that logic away from your package.json
Install
npm install @yigal/watch_runnerExample watch_biome.ts:
Rerun an npx command on change of specified watchfiles:
import {run} from '@yigal/watch_runner.ts'
await run({
cmd:'npx biome lint',
watchfiles:[
'src',
'biome.json',
'package.json'
]
})