Simek / yarn-lock-changes

Creates a comment inside Pull Request with the human-readable summary of changes to the Yarn lock file. Works with every Yarn version (classic and berry).
https://github.com/marketplace/actions/yarn-lock-changes
MIT License
132 stars 20 forks source link

fix error while parsing locally linked dependencies #56

Closed Simek closed 2 years ago

Simek commented 2 years ago

Why

Fixes #55

How

This PR includes a fix for parsing locally linked entries in Berry locks, in case where those entries do not include any dependencies.

I have included the locally linked package in tests before, but the problem was not caught in there, since this package have a few dependencies. In cases like this parser was splitting the entry fields incorrectly, which later in time leads to attempt of using split on undefined value.