Skip to content
Snippets Groups Projects
Unverified Commit bc192665 authored by Mads Jon Nielsen's avatar Mads Jon Nielsen Committed by GitHub
Browse files

fix(npm): package-lock.json v3 root project out of sync with package.json (#23495)


Co-authored-by: default avatarRhys Arkins <rhys@arkins.net>
parent dae5b8f5
No related branches found
No related tags found
No related merge requests found
......@@ -174,7 +174,10 @@ export async function generateLockFile(
// because npm install was called with an explicit version for rangeStrategy=update-lockfile
if (lockUpdates.length) {
const { detectedIndent, lockFileParsed } = parseLockFile(lockFile);
if (lockFileParsed?.lockfileVersion === 2) {
if (
lockFileParsed?.lockfileVersion === 2 ||
lockFileParsed?.lockfileVersion === 3
) {
lockUpdates.forEach((lockUpdate) => {
const depType = lockUpdate.depType as
| 'dependencies'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment