imsnif / synp

Convert yarn.lock to package-lock.json and vice versa
MIT License
757 stars 41 forks source link

fix: provide support for `packages` when `dependencies` do not exist (package-lock v3) #104

Closed ryndh closed 5 months ago

ryndh commented 5 months ago

Doing some testing on failures happening with converting package-lock.json files with "lockfileVersion": 3, and tested out the solution mentioned in this issue: https://github.com/imsnif/synp/issues/99

Using this fork, I was able to get a successful conversion, where previous attempts with package-lock.json v3 had failed.

antongolub commented 5 months ago

Hey, @ryndh,

Thanks for the fix. But are you sure, that ?? syntax is supported in nodejs v12?

ryndh commented 5 months ago

But are you sure, that ?? syntax is supported in nodejs v12?

Ah, good call – switched it to ||

antongolub commented 5 months ago

Now everything seems fine, thanks. Could you also revert changelog.md? We use semrel to update the data automatically.

antongolub commented 5 months ago

Finally released: 1.9.13