TODO List
Build System
Watch Mode Improvement
Priority: Medium
Status: Pending
Created: 2024-12-22
Problem
tsup's watch mode doesn't detect changes in workspace dependencies (e.g., shared package) in our monorepo setup.
Current Workaround
Currently, developers need to manually rebuild when making changes to the shared package.
Potential Solutions
- Use chokidar to watch shared package files
- Pros: Direct file system watching
- Cons: Additional dependency
- Integrate with turborepo's watch feature
- Pros: Native monorepo support
- Cons: Requires turborepo setup
- Use nodemon for development
- Pros: Simple to implement
- Cons: Additional tooling
Related Issues
- tsup issue: https://github.com/egoist/tsup/issues/647
- turbo issue: https://github.com/vercel/turbo/issues/986
Next Steps
- Research the impact on development workflow
- Evaluate each solution's trade-offs
- Implement the chosen solution
- Add tests for the watch mode
- Update documentation