Browse Source

Only list production dependencies in npm install

master
Adrian Heine 3 years ago
parent
commit
d6d5d9ebc4
  1. 5
      src/symbols/npm.rs

5
src/symbols/npm.rs

@ -42,7 +42,10 @@ impl<T: AsRef<Path>, C: CommandRunner> Symbol for Install<'_, T, C> {
"sh",
args![
"-c",
format!("cd '{}' && npm ls", self.target.as_ref().to_str().unwrap()),
format!(
"cd '{}' && npm ls --prod",
self.target.as_ref().to_str().unwrap()
),
],
)
.await?;

Loading…
Cancel
Save