Yarn v2 support needed
See original GitHub issueIs your feature request related to a problem? Please describe.
Yarn v2 introduced a new lockfile format that now adheres to YAML. I believe ATM when trying to run lockfile-lint on a project with yarn v2, lockfile-lint tries to use the v1 parser and fails with an error.
ABORTING lockfile lint process due to error exceptions
Unable to parse lockfile "yarn.lock"
SyntaxError: Unknown token: {line: 3, col: 2, type: ''INVALID', value: undefined } 3:2 in lockfile
Describe the solution you’d like
As far as I can tell, yarn v2 does not have an equivalent lockfile parser. But since it adheres to YAML now, I’m wondering if it is possible to just use a parser like yaml and create a small function to transform it like parseNpmLockfile
?
Describe alternatives you’ve considered
None.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:11
- Comments:22 (14 by maintainers)
Top Results From Across the Web
Migration | Yarn - Package Manager
A step-by-step and in-depth migration guide from Yarn 1 (Classic) to Yarn 2 (Berry).
Read more >Yarn 2 — the future of package managers for JavaScript? - Snyk
Getting started with Yarn 2 requires you to have an up to date version of Node.js, at minimum Node.js 10. In any case,...
Read more >Introducing Yarn 2 ! - DEV Community
Hi everyone! After exactly 365 days of very intensive development, I'm extremely happy to unveil the first stable release of Yarn 2.
Read more >Migrating our Monorepo to Yarn 2 | DoltHub Blog
In the end, the actual changes required to migrate to Yarn 2 were not that ... Yarn 2 no longer supported this argument,...
Read more >Migrating to Yarn 2 - Heroku Dev Center
Heroku users using Yarn are not required to migrate to Yarn 2, ... on caching from the .yarn/cache directory, but it is not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@kachkaev if you or someone else wants to tackle please go for it. Otherwise i’ll take a stab at it soon
Can the title of this issue please be updated to “Yarn v2 support needed” for accuracy since NPM v7 is already supported?