tophat / yarn-plugin-licenses

Audit your dependency licenses with this yarn berry plugin
Apache License 2.0
26 stars 7 forks source link

Plugin not usable with latest yarn #14

Closed olee closed 3 years ago

olee commented 3 years ago

It seems the following line is not the correct way to specify the command path anymore as the command is unusable for me: https://github.com/tophat/yarn-plugin-licenses/blob/c2abd459501318dded85841a748bc513b49b3b11/src/index.ts#L51

Also in the yarn docs it says to use .addPath instead: https://yarnpkg.com/advanced/plugin-tutorial#adding-commands

thesabbir commented 3 years ago

I'm facing the same issue @olee

Usage Error: Couldn't find a script named "licenses".
Kurt-von-Laven commented 3 years ago

I have been using this tool for a while, and it never worked for me at yarn v2, but it does at yarn v3 below release candidate 10 (e.g., yarn set version 3.0.0-rc.9).

noahnu commented 3 years ago

Fixed & tested for Yarn v3.0.0 which is stable now.