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

feat(core): support npm workspaces in lock file utils #13695

Merged
merged 4 commits into from Dec 12, 2022

Conversation

meeroslav
Copy link
Contributor

@meeroslav meeroslav commented Dec 7, 2022

Note: The #13585 should be merged first as part of that PR is used here as well

Current Behavior

Expected Behavior

Related Issue(s)

Related to #9761

@vercel
Copy link

vercel bot commented Dec 7, 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 8:10PM (UTC)

@@ -2878,44 +2878,28 @@ packages:
`;

/**
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We are extracting workspace fixtures to workspaces.lock.ts

@@ -239,7 +239,7 @@ describe('lock-file', () => {
const lockFileData = parseNpmLockFile(npmLockFileWithAliases);
const lockFile = stringifyNpmLockFile(lockFileData);

expect(lockFile).toEqual(npmLockFileWithAliases);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

NPM is fragile with props ordering so comparing JSON's makes more sense

version: value.resolved,
}),
...(!value.integrity &&
value.version && {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

workspace project has no version in lock file

@FrozenPandaz FrozenPandaz merged commit 7a70d52 into nrwl:master Dec 12, 2022
@meeroslav meeroslav deleted the npm-workspaces branch March 14, 2023 22:17
@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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants