Closed olee closed 3 years ago
I'm facing the same issue @olee
Usage Error: Couldn't find a script named "licenses".
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
).
Fixed & tested for Yarn v3.0.0 which is stable now.
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