Skip to content

Commit acda92a

Browse files
committed
Don't print headers with yarn init -2
1 parent cf4e1d3 commit acda92a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/cli/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,11 @@ export async function main({
264264

265265
const config = new Config(reporter);
266266
const outputWrapperEnabled = boolifyWithDefault(process.env.YARN_WRAP_OUTPUT, true);
267-
const shouldWrapOutput = outputWrapperEnabled && !commander.json && command.hasWrapper(commander, commander.args);
267+
const shouldWrapOutput =
268+
outputWrapperEnabled &&
269+
!commander.json &&
270+
command.hasWrapper(commander, commander.args) &&
271+
!(commandName === 'init' && commander[`2`]);
268272

269273
if (shouldWrapOutput) {
270274
reporter.header(commandName, {name: 'yarn', version});

0 commit comments

Comments
 (0)