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(js): aliased packages are pruned from package-lock.json #22225

Closed

Conversation

kdawgwilk
Copy link
Contributor

Current Behavior

When enabling the generatePackageJson flag for js build targets the pruned package-lock.json file is invalid. When npm ci is ran you get the following errors

npm ERR! code EUSAGE
npm ERR! 
npm ERR! `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
npm ERR! 
npm ERR! Missing: [email protected] from lock file
npm ERR! Missing: [email protected] from lock file
npm ERR! Missing: [email protected] from lock file
npm ERR! Missing: [email protected] from lock file

Expected Behavior

The pruned package-lock.json generated is valid and can be installed via npm ci

Related Issue(s)

Fixes #17653

@kdawgwilk kdawgwilk requested review from meeroslav and a team as code owners March 8, 2024 00:23
@kdawgwilk kdawgwilk requested a review from AgentEnder March 8, 2024 00:23
Copy link

vercel bot commented Mar 8, 2024

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

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Mar 8, 2024 0:25am

@kdawgwilk
Copy link
Contributor Author

Just have a failing test at this point but will be looking into fixing the failure

@meeroslav
Copy link
Contributor

This PR doesn't seem to include any code changes, just additional test and fixture. Is that intended or this got lost during the rebase?

@kdawgwilk
Copy link
Contributor Author

@meeroslav I was intending to come back and write the code to get the failing test passing but I am not longer working for the company that was running into this issue so I will likely not be coming back to this PR. However I do think this is an issue that still needs to be addressed

@kdawgwilk
Copy link
Contributor Author

@meeroslav did #23474 fix this as well?

@FrozenPandaz FrozenPandaz assigned meeroslav and unassigned JamesHenry May 27, 2024
@meeroslav
Copy link
Contributor

Yes, the #23474 was fixing this exact problem

@meeroslav meeroslav closed this May 28, 2024
Copy link

github-actions bot commented Jun 5, 2024

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 Jun 5, 2024
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.

generatePackageJson creates incompatible package.json and package-lock.json in certain scenarios.
3 participants