nx icon indicating copy to clipboard operation
nx copied to clipboard

fix(core): remove duplicate `js-yaml` packages

Open Phillip9587 opened this issue 1 year ago • 6 comments

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 #

Phillip9587 avatar May 16 '24 08:05 Phillip9587

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

vercel[bot] avatar May 16 '24 08:05 vercel[bot]

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.

meeroslav avatar May 17 '24 09:05 meeroslav

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

Phillip9587 avatar May 17 '24 11:05 Phillip9587

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

meeroslav avatar May 17 '24 14:05 meeroslav

@meeroslav CI is finally green

Phillip9587 avatar May 17 '24 16:05 Phillip9587

@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!

nzacca avatar May 22 '24 03:05 nzacca

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[bot] avatar May 28 '24 00:05 github-actions[bot]