mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Run only on production
This commit is contained in:
@@ -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, {
|
||||||
|
Reference in New Issue
Block a user