-
Hey guys, First of all: I'm using yarn 2 with pnp enabled. I created a simple library. Lets name it @test/mylib. In the package.json of my lib I added a bin script:
As you can see there is a simple script and this script simply does not do something else beside a console.log("WORKS"). Now I have another project. This project includes my library as a dependency. What I want is to execute the test123 script of my library in the terminal of my project. By executing So as I understood I now should execute the following statement and it should work: What I get is an internal error Binary not found (mylib) for root-workspace-0b6124@workspace. How can I execute the binary script of my library outside of my library? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Since the binary name doesn't match the package name ( yarn dlx -p @test/mylib test123 |
Beta Was this translation helpful? Give feedback.
Since the binary name doesn't match the package name (
mylib
) you need to specify which one you want to run: