feat(cli): Update chokidar to v5#122
Conversation
This update resolves peer dependency conflicts in repositories that use both @swc/cli and Angular, as Angular now uses chokidar v5. BREAKING CHANGE: Minimum Node.js version bumped from 16.14.0 to 20.19.0 to match chokidar v5's requirements. Changes: - Update chokidar from ^4.0.1 to ^5.0.0 in devDependencies and peerDependencies - Add local type declarations for chokidar to support Node.js 20.19+ (chokidar v5 types use Node.js 22+ generic EventEmitter) - Add skipLibCheck to tsconfig.json for type compatibility - Add explicit FSWatcher return type to watchSources function
🦋 Changeset detectedLatest commit: e5421ad The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
I removed a changeset with a wrong bump. Major here means 1.0 so it’s not what we want |
|
Thanks @kdy1 ! I wasn't sure if lerna's special case handling for Major bumps for It looks like the publish pipeline failed, just curious if it would be possible to re-run it, such that a new version can be published to allow me to update the versions of swc Nx installs for users? |
|
Done, thank you for the PR! https://github.com/swc-project/pkgs/actions/runs/21748677787/job/62740847849 |
## Proposed change - [x] Pending update on `@swc/cli` swc-project/pkgs#122 ## Related issues <!-- Please make sure to follow the [contribution guidelines](https://github.com/amadeus-digital/Otter/blob/main/CONTRIBUTING.md) --> *- No issue associated -* <!-- * 🐛 Fix #issue --> <!-- * 🐛 Fix resolves #issue --> <!-- * 🚀 Feature #issue --> <!-- * 🚀 Feature resolves #issue --> <!-- *Pull Request #issue -->
This update resolves peer dependency conflicts in repositories that use
both @swc/cli and Angular, as Angular now uses chokidar v5.
BREAKING CHANGE: Minimum Node.js version bumped from 16.14.0 to 20.19.0
to match chokidar v5's requirements.
Changes:
(chokidar v5 types use Node.js 22+ generic EventEmitter)