Skip to content

Commit

Permalink
[Fix] getLockfile: use --ignore-scripts when generating a lockfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Dec 9, 2021
1 parent 90b099c commit 0587433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion getLockfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module.exports = function getLockfile(packageFile, date, {
const PATH = path.join(tmpDir, '../node_modules/.bin');
logger(chalk.blue(`Running npm install to create lockfile for ${date || '“now”'}...`));
exec(
`npm install --package-lock --package-lock-only${date ? ` --before=${date}` : ''}${only ? ` --only=${only}` : ''}`,
`npm install --ignore-scripts --package-lock --package-lock-only${date ? ` --before=${date}` : ''}${only ? ` --only=${only}` : ''}`,
{
cwd: tmpDir,
env: {
Expand Down

0 comments on commit 0587433

Please sign in to comment.