Skip to content

Commit d23f5d2

Browse files
ortaarcanis
authored andcommitted
Adds a note of the workspace name when running commands in all workspaces (#7722)
* Adds a note of the workspace name when running commands in all workspaces * Update CHANGELOG.md
1 parent 11872ca commit d23f5d2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ Please add one entry in this file for each change in Yarn's behavior. Use the sa
44

55
## Master
66

7+
- Prints workspace names with `yarn workspaces` (silence with `-s`)
8+
9+
[#7722](https://github.com/yarnpkg/yarn/pull/7722) - [**Orta**](https://twitter.com/orta)
10+
711
- Implements `yarn init --install berry`
812

913
[#7723](https://github.com/yarnpkg/yarn/pull/7723) - [**Maël Nison**](https://twitter.com/arcanis)

src/cli/commands/workspaces.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {NODE_BIN_PATH, YARN_BIN_PATH} from '../../constants';
1010

1111
const invariant = require('invariant');
1212
const path = require('path');
13+
const os = require('os');
1314
const semver = require('semver');
1415

1516
export function hasWrapper(commander: Object, args: Array<string>): boolean {
@@ -79,7 +80,7 @@ export async function runScript(config: Config, reporter: Reporter, flags: Objec
7980

8081
for (const workspaceName of Object.keys(workspaces)) {
8182
const {loc} = workspaces[workspaceName];
82-
83+
reporter.log(`${os.EOL}> ${workspaceName}`);
8384
await child.spawn(NODE_BIN_PATH, [YARN_BIN_PATH, ...rest], {
8485
stdio: 'inherit',
8586
cwd: loc,

0 commit comments

Comments
 (0)