Skip to content

Commit

Permalink
fix(version): inherit stdio for lerna version lifecycle scripts (#3264)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHenry committed Jul 27, 2022
1 parent 3b0c79c commit 9083a23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/version/index.js
Expand Up @@ -232,7 +232,7 @@ class VersionCommand extends Command {
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)
Expand Down

0 comments on commit 9083a23

Please sign in to comment.