A library for building incremental compilers and file watchers in Node.js, version 21.0.45. It wraps @parcel/watcher and chokidar to provide a unified, event-driven API for watching file changes and triggering compilation. Supports TypeScript, project-based configuration, and automatically ignores node_modules and .git. Unlike raw chokidar, it abstracts away watcher differences and provides a base class for project-aware compilation.
npm install incremental-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates setting up a file watcher with incrementalWatcher that looks for .ts files and logs changes.
Update all imports to use 'incremental-compiler/src' instead of 'incremental-compiler'.
Pass options object as second argument to super().
Use a different watcher if you need to watch these directories.
Always wrap a single pattern in an array: ['pattern'].
Change import to 'incremental-compiler/src'.
Ensure you import as: import { incrementalWatcher } from 'incremental-compiler/src'.Pass a valid options object as second argument, e.g., { name: 'my watcher' }.