Skip to content
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.

Commit

Permalink
Merge branch '4.1.0'
Browse files Browse the repository at this point in the history
# Conflicts:
#	hub-detect/src/main/groovy/com/blackducksoftware/integration/hub/detect/bomtool/npm/NpmCliExtractor.java
  • Loading branch information
jrichard committed Jul 16, 2018
2 parents 9450f18 + 505318c commit 8731aba
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.List;

import org.slf4j.Logger;
Expand Down Expand Up @@ -66,11 +66,11 @@ public Extraction extract(final BomToolType bomToolType, final File directory, f
final File npmLsErrorFile = detectFileManager.getOutputFile(outputDirectory, NpmCliExtractor.ERROR_FILE);

final boolean includeDevDeps = detectConfigWrapper.getBooleanProperty(DetectProperty.DETECT_NPM_INCLUDE_DEV_DEPENDENCIES);
List<String> exeArgs;
final List<String> exeArgs = new ArrayList<>();
exeArgs.add("ls");
exeArgs.add("-json");
if (!includeDevDeps) {
exeArgs = Arrays.asList("ls", "-json", "-prod");
} else {
exeArgs = Arrays.asList("ls", "-json");
exeArgs.add("-prod");
}

final Executable npmLsExe = new Executable(directory, npmExe, exeArgs);
Expand Down

0 comments on commit 8731aba

Please sign in to comment.