Skip to content

workspaces: "yarn run" inside a package should run binaries from root node_modules #6148

@AviVahl

Description

@AviVahl

Do you want to request a feature or report a bug?
feature request for better usability of workspaces

What is the current behavior?
yarn run only runs bins that were specified in the package itself, not ones from workspace's root package.json.

If the current behavior is a bug, please provide the steps to reproduce.

git clone https://github.com/wixplosives/sample-monorepo
cd sample-monorepo
yarn
# next one works!
yarn run webpack --version
cd ./packages/app
# next one fails :(
yarn run webpack --version

What is the expected behavior?
It should also find binaries from root node_modules, and run them with cwd set to the current package I'm in.

Please mention your node.js, yarn and operating system version.
node 8.11.3, yarn 1.9.1, fedora 28

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions