updating production flag to --omit=dev (#125)
* updating production flag to --omit=dev * fixing readme comment
This commit is contained in:
2
dist/index.js
vendored
2
dist/index.js
vendored
@@ -25,7 +25,7 @@ class Audit {
|
||||
const isWindowsEnvironment = process.platform == "win32";
|
||||
const cmd = (isWindowsEnvironment) ? 'npm.cmd' : 'npm';
|
||||
if (productionFlag === 'true') {
|
||||
auditOptions.push('--production');
|
||||
auditOptions.push('--omit=dev');
|
||||
}
|
||||
if (jsonFlag === 'true') {
|
||||
auditOptions.push('--json');
|
||||
|
||||
Reference in New Issue
Block a user