updating npm bom tool
@@ -97,7 +97,7 @@ class NpmBomTool extends BomTool {
def dependencyNode = cliDependencyFinder.generateDependencyNode(npmLsOutputFile)
def detectCodeLocation = new DetectCodeLocation(getBomToolType(), sourcePath, dependencyNode)
- hubSignatureScanner.registerPathToScan(new File(sourcePath), NODE_MODULES)
+ hubSignatureScanner.registerPathToScan(sourceDirectory, NODE_MODULES)
return [detectCodeLocation]
} else if (npmLsErrorFile.length() > 0) {
logger.error("Error when running npm ls -json command\n${npmLsErrorFile.text}")
