-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Description
Issue description:
I recently updated my npm to v9 and discovered that some functionality built on synp no longer works.
My code calls npmToYarn() which ends up dying in buildYarnTree() when it passes undefined to flattenPackageLock.
After doing some digging, it appears that npm v9 does not populate the dependencies section as it was absent from my package-lock file. Hence the undefined value.
By modifying the line in question to pass packageLock.packages instead of packageLock.dependencies in my node_modules, I was able to get the npmToYarn() call to work. Perhaps changing it to packageLock.dependencies ?? packageLock.packages would enable package-lock v3 support without breaking backwards compatibility?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels