-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
bugSomething isn't workingSomething isn't workingreproducibleThis issue can be successfully reproducedThis issue can be successfully reproduced
Description
- I'd be willing to implement a fix
Describe the bug
Running yarn workspaces foreach -A run script_name
only runs script_name
on one workspace (even with script_name
defined in other workspaces).
To Reproduce
await packageJson({
name: "one",
scripts: {
print: 'echo "one"'
}
}, { cwd: 'one' })
await packageJson({
name: "two",
scripts: {
print: 'echo "two"'
}
}, { cwd: 'two' })
await packageJsonAndInstall({
workspaces: ['one', 'two']
});
const output = await yarn(`workspaces`, `foreach`, 'run', 'print');
expect(output).toContain(`one`);
expect(output).toContain(`two`);
expect(await yarn('node', '--version')).toContain(`v15`);
Notice only one
gets printed and not also two
.
Environment:
- OS: OSX or Linux (docker node:15.0.1)
- Node version: v15.0.1
- Yarn version: 2.3.3
Additional context
Works with:
- node: v14.15.0
latin-1
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingreproducibleThis issue can be successfully reproducedThis issue can be successfully reproduced