A CLI tool (v1.0.0) that watches a directory for changes, runs a build command, and copies the resulting dist folder to a target directory. It is a simple development utility for projects that need to rebuild and sync output on file changes. No active release cadence; last release is initial. Differentiators: minimal configuration, single-purpose, no framework dependency.
npm install watch-build-copyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows programmatic usage: watch a directory, run build, copy dist to target with a 2-second throttle.
Use a fixed build command or sanitize input.
Backup target directory before running.
Upgrade Node.js to >=12.
Use import syntax or set type: 'module' in package.json.
Use import watchBuildCopy from 'watch-build-copy'.
Ensure build command produces the dist folder.