-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Make @parcel/watcher optional #9506
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: f105677 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for tackling this properly! 🎉
Approved from my side.
* Surface error occurring during import of @parcel/watcher Follow up from #9506 * Add changeset * Improve message and docs * due to * prettier
In what way is this a breaking change for a user? |
As in, previously it was installed as a dependency and for a user to still make use of it, they need to actively add it to their package.json to install it now. |
OK — how would I know if my configuration made use of this feature? Is there a particular thing to look for in my config file that would suggest that this is a breaking change for me? |
Did your workflow depend on
|
Great — might help to update the release notes to say something explicit like "The |
This was merged and released 2 years ago. I guess someone with write access could amend the release notes for https://github.com/dotansimha/graphql-code-generator/releases/tag/release-1690276829878. |
🚨 IMPORTANT: Please do not create a Pull Request without creating an issue first.
Any change needs to be discussed before proceeding. Failure to do so may result in the rejection of the pull request.
Description
This is a new attempt to fix #9320.
@parcel/watcher
needs a whole lot of build dependencies on the system. Normally, it will just pull prebuilt binaries for your system. But currently there are no prebuilt binaries for linux on arm64: parcel-bundler/watcher#130In those environments, it tries to build it from source which means it needs python etc.
This makes
@parcel/watcher
optional, which should prevent these issues. The user is free to choose if they want to include@parcel/watcher
as a dev dependency or take additional measures such as marking it optional (to ignore build errors)The tests still run and
@parcel/watcher
should be pulled in via thedevDependencies
for the tests.I assumed this would be a breaking change and included a major changeset and a migration guide.
Related #9320
Type of change
Please delete options that are not relevant.
Checklist:
Further comments
This is the proposed way laid out in the yarn docs. The previous PR just moved
@parcel/watcher
intooptionalDependencies
. Yarn says using an optional peer dependency might be better.