Only list production dependencies in npm install

This commit is contained in:
Adrian Heine 2021-07-21 21:49:24 +02:00
parent aa5b6fa603
commit d6d5d9ebc4

View file

@ -42,7 +42,10 @@ impl<T: AsRef<Path>, C: CommandRunner> Symbol for Install<'_, T, C> {
"sh", "sh",
args![ args![
"-c", "-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?; .await?;