I have a working monorepo(yarn v1) with lot of workspaces(small example below). I'm working on upgrading yarn to Yarn@3 berry. I'm not able to access "Client" package .bin scripts from monorepo root, giving me this error "Usage Error: Couldn't find a script named helloworld" where as this worked in yarn v1. Is there a way to make "helloworld" work from anywhere in the monorepo like "yarn helloworld".
works:
yarn workspace Client helloworld
Fails:
yarn helloworld
Usage Error: Couldn't find a script named "helloworld".
Example:
--package.json
--node_modules/
--shared/
|--client/
|--package.json
|--node_modules/
|--server/
|--package.json
|--node_modules/
I was able to resolve by sharing scripts https://yarnpkg.com/getting-started/qa#how-to-share-scripts-between-workspaces