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): prune lock file based on projects dependencies and package.json #13317

Merged
merged 13 commits into from
Dec 8, 2022

Conversation

meeroslav
Copy link
Contributor

@meeroslav meeroslav commented Nov 22, 2022

Current Behavior

Expected Behavior

Related Issue(s)

Closes #9761

Note: (npm workspaces is being implemented in a separate PR)

@vercel
Copy link

vercel bot commented Nov 22, 2022

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

Name Status Preview Updated
nx-dev ✅ Ready (Inspect) Visit Preview Dec 7, 2022 at 8:48PM (UTC)

}

const packageJson = createPackageJson(projectName, projectGraph, {});
// cleanup irrelevant fields from the generated pacakge.json
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
// cleanup irrelevant fields from the generated pacakge.json
// cleanup irrelevant fields from the generated package.json

{
path: `node_modules/${packageName}`,
...(dev ? { dev } : {}),
...(optional ? { dev } : {}),
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be optional

@@ -33,7 +33,6 @@ export function parseYarnLockFile(lockFile: string): LockFileData {
isBerry
);
const hash = hashString(lockFile);
const [mappedPackages, workspacePackages] = mapPackages(dependencies);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a rebase misshap - there were never two instances of this call, otherwise the build would have been failing

@FrozenPandaz FrozenPandaz merged commit c3bc517 into nrwl:master Dec 8, 2022
@meeroslav meeroslav deleted the prune-project-lock-file 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
scope: core core nx functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for generating a package-lock.json file for each project
2 participants