feat(cli): add file watching feature for automatic retranslation #966
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

closes #243
This pull request introduces a new "watch mode" feature to the Lingo.dev CLI, allowing automatic retranslation of source files when changes are detected. The implementation includes updates to the CLI's core functionality, new dependencies, and comprehensive documentation.
Watch Mode Feature:
--watchflag for enabling watch mode and--debounceflag for configuring the debounce delay (default: 5000ms). These options are integrated into theruncommand. (packages/cli/src/cli/cmd/run/_types.ts- [1]packages/cli/src/cli/cmd/run/index.ts- [2] [3]watch.tsfor monitoring file changes usingchokidar. This includes debounce logic, error handling, and integration with the existing translation pipeline. (packages/cli/src/cli/cmd/run/watch.ts- packages/cli/src/cli/cmd/run/watch.tsR1-R174)Dependency Updates:
chokidarfor file watching and its TypeScript definitions. (packages/cli/package.json- [1] [2]pnpm-lock.yaml- [3] [4] [5] [6]Documentation:
WATCH_MODE.mdfile explaining the watch mode's usage, features, implementation details, and testing instructions. (packages/cli/WATCH_MODE.md- packages/cli/WATCH_MODE.mdR1-R176).changeset/hip-jars-hammer.md- .changeset/hip-jars-hammer.mdR1-R33)