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(core): remove duplicate js-yaml packages #23422

Merged
merged 1 commit into from
May 20, 2024
Merged

Conversation

Phillip9587
Copy link
Contributor

Current Behavior

nx package depends on both js-yaml and @zkochan/js-yaml

Expected Behavior

nx should only depend on one of the both

Related Issue(s)

Fixes #

Copy link

vercel bot commented May 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview May 17, 2024 2:34pm

@meeroslav
Copy link
Contributor

Thank you @Phillip9587 for this PR.

The two failing lint tasks are related to a limitation in the dependency-checks rule. Can you please add js-yaml to the list of ignoredDependencies in the corresponding .eslintrc.json, and we will address that issue separately?

You also need to rebase with the latest pnpm-lock file changes.

Copy link
Contributor

@meeroslav meeroslav left a comment

Choose a reason for hiding this comment

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

The dependency-checks rule is failing with alias dependencies. This should be resolved elsewhere.

Just include the override in the ignoredDependencies to get this PR over the line and we will address this issue separately.

@Phillip9587
Copy link
Contributor Author

@meeroslav Done. I created #23469 to track the issue with the lint rule

@meeroslav
Copy link
Contributor

Thank you! Merging it in as soon as the build it green.

@Phillip9587
Copy link
Contributor Author

@meeroslav CI is finally green

@meeroslav meeroslav merged commit f1ae1bc into nrwl:master May 20, 2024
6 checks passed
@nzacca
Copy link

nzacca commented May 22, 2024

@Phillip9587

Hello! May I inquire why Nx is using the package from zkochan vs the official package?

We are using js-yaml directly in our project but this change is now causing a conflict as it expects zkochan's package as a peer dependency. I can't seem to find the actual source for the zkochan package to compare what is different to assess if it is OK to change.

Any insight for the differences would be appreciated! Thank you!

Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants