Skip to content
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

fix: add fsevents as a dependency #5133

Merged
merged 3 commits into from
Sep 26, 2023
Merged

fix: add fsevents as a dependency #5133

merged 3 commits into from
Sep 26, 2023

Conversation

mkhq
Copy link
Contributor

@mkhq mkhq commented Sep 25, 2023

What this PR does / why we need it:

Add fsevents to the dependencies. It's loaded dynamically if the platform is darwin in core/src/watch.ts .

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

@TimBeyer
Copy link
Contributor

Don't we have our own version of fsevents in core/lib?
Also is it really optional if it is required for darwin?

@mkhq
Copy link
Contributor Author

mkhq commented Sep 25, 2023

Don't we have our own version of fsevents in core/lib?

Yes, honestly not sure if we need that? I've removed it since now we include as an optional dependency.

Also is it really optional if it is required for darwin?

npm will fail on any other platform if this is not optional.

@mkhq
Copy link
Contributor Author

mkhq commented Sep 26, 2023

Don't we have our own version of fsevents in core/lib?

Yes, honestly not sure if we need that? I've removed it since now we include as an optional dependency.

We use it when packaging the macos build.

@mkhq mkhq requested a review from a team September 26, 2023 08:07
Copy link
Collaborator

@vvagaytsev vvagaytsev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍 Thank you!

@mkhq mkhq added this pull request to the merge queue Sep 26, 2023
Merged via the queue into main with commit 76e186f Sep 26, 2023
42 checks passed
@mkhq mkhq deleted the fix-fsevents-import branch September 26, 2023 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants