Skip to content

Commit

Permalink
Merge pull request #159 from neon-bindings/windows-npm-issues
Browse files Browse the repository at this point in the history
Windows npm issues
  • Loading branch information
Dave Herman authored Jan 5, 2017
2 parents 6676b8a + 97822b3 commit 5ef6441
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/neon-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ const NPM_COMMAND : &'static str = "npm.cmd";

fn build_object_file() {
// Ensure that all package.json dependencies and dev dependencies are installed.
Command::new(NPM_COMMAND).arg("install").status().ok()
Command::new(NPM_COMMAND).args(&["install", "--silent"]).status().ok()
.expect(r#"failed to run "npm install" for neon-sys"#);

// Run the package.json `configure` script, which invokes `node-gyp configure` from the local node_modules.
Command::new(NPM_COMMAND).arg("run").arg(if debug() { "configure-debug" } else { "configure-release" }).status().ok().unwrap();
Command::new(NPM_COMMAND).args(&["run", "--silent"]).arg(if debug() { "configure-debug" } else { "configure-release" }).status().ok().unwrap();

// Run the package.json `build` script, which invokes `node-gyp build` from the local node_modules.
Command::new(NPM_COMMAND).arg("run").arg(if debug() { "build-debug" } else { "build-release" }).status().ok().unwrap();
Command::new(NPM_COMMAND).args(&["run", "--silent"]).arg(if debug() { "build-debug" } else { "build-release" }).status().ok().unwrap();
}

fn link_library() {
Expand Down

0 comments on commit 5ef6441

Please sign in to comment.