Skip to content

Commit

Permalink
fix(pnpm): stop ignore pnpmfile with high trust level (#4845)
Browse files Browse the repository at this point in the history
  • Loading branch information
Djaler authored and rarkins committed Nov 22, 2019
1 parent b86c1b0 commit edc2dc3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/manager/npm/post-update/pnpm.ts
Expand Up @@ -91,8 +91,10 @@ export async function generateLockFile(
logger.debug(`Using pnpm: ${cmd}`);
cmd += ' install';
cmd += ' --lockfile-only';
cmd += ' --ignore-scripts';
cmd += ' --ignore-pnpmfile';
if (global.trustLevel !== 'high') {
cmd += ' --ignore-scripts';
cmd += ' --ignore-pnpmfile';
}
// TODO: Switch to native util.promisify once using only node 8
({ stdout, stderr } = await exec(cmd, {
cwd,
Expand Down

0 comments on commit edc2dc3

Please sign in to comment.