Skip to content

Commit

Permalink
fix(version): inherit stdio for lerna version lifecycle scripts (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding authored Jul 27, 2022
1 parent fb1852d commit 9c3625d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/version/src/version-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export class VersionCommand extends Command<VersionCommandOption> {
this.logger.info('version', 'rooted leaf detected, skipping synthetic root lifecycles');
}

this.runPackageLifecycle = createRunner(this.options);
this.runPackageLifecycle = createRunner({ ...this.options, stdio: 'inherit' });

// don't execute recursively if run from a poorly-named script
this.runRootLifecycle = /^(pre|post)?version$/.test(process.env.npm_lifecycle_event as string)
Expand Down

0 comments on commit 9c3625d

Please sign in to comment.