Skip to content

Commit

Permalink
Merge pull request #282 from mstallmo/add-otp-to-publish
Browse files Browse the repository at this point in the history
add support for otp when publishing to npm
  • Loading branch information
ashleygwilliams authored Sep 11, 2018
2 parents 947b33f + 8a0549f commit 2ef929d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/npm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ pub fn npm_publish(path: &str) -> Result<(), Error> {
let output = Command::new("npm")
.current_dir(path)
.arg("publish")
.stdin(Stdio::inherit())
.stdout(Stdio::inherit())
.output()?;
if !output.status.success() {
let s = String::from_utf8_lossy(&output.stderr);
Expand Down

0 comments on commit 2ef929d

Please sign in to comment.