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): support alias packages in affected locators detection #13585

Merged
merged 5 commits into from
Dec 9, 2022

Conversation

meeroslav
Copy link
Contributor

@meeroslav meeroslav commented Dec 2, 2022

Current Behavior

Alias packages break the affected locators' package checking (more info in #13228)

Expected Behavior

Locators should support alias packages

Related Issue(s)

Fixes #13228

@meeroslav meeroslav added the scope: core core nx functionality label Dec 2, 2022
@meeroslav meeroslav self-assigned this Dec 2, 2022
@vercel
Copy link

vercel bot commented Dec 2, 2022

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

Name Status Preview Updated
nx-dev ✅ Ready (Inspect) Visit Preview Dec 9, 2022 at 11:04AM (UTC)


// check if it's an alternative package e.g. npm:@myorg/[email protected]
// standard package versions do not contain `@`
const npmPackage = change.value.rhs.split('@').slice(0, -1).join('@');
Copy link
Collaborator

Choose a reason for hiding this comment

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

This seems wrong that the path does not match the name of the project. I expect it should match because the "alias"ed path is just where to get a package from.. the real name of the package is.. the property name.

@github-actions
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 Mar 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
scope: core core nx functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nx affected throws error when installing npm: prefixed package versions
2 participants