Run only on production

This commit is contained in:
Eugenio Romano
2021-03-08 11:10:20 +00:00
committed by GitHub
parent f58d8bf834
commit 06095744eb

View File

@@ -58,7 +58,7 @@ export default function main(_args: string[], workingDir: string) {
console.log(`Running audit on ${packagePath}`); console.log(`Running audit on ${packagePath}`);
const packageJson = JSON.parse(fs.readFileSync(packagePath).toString()); const packageJson = JSON.parse(fs.readFileSync(packagePath).toString());
const cmd = 'npm audit --json'; const cmd = 'npm audit --json --prod';
const jsonAudit = JSON.parse(shell.exec(cmd, { silent: true })); const jsonAudit = JSON.parse(shell.exec(cmd, { silent: true }));
ejs.renderFile(templatePath, { ejs.renderFile(templatePath, {