Skip to content

Commit

Permalink
fix: run npm ci with --ignore-scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMousa committed Sep 15, 2023
1 parent a9a7733 commit a77ae69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public function createBuildContext(): Context
$context->run('cd /build && composer config platform-check false');
$context->run('cd /build && composer install --no-autoloader --ignore-platform-reqs --prefer-dist');
if (file_exists("$basePath/package-lock.json")) {
$context->run('cd /build && npm ci --no-audit');
$context->run('cd /build && npm ci --ignore-scripts --no-audit');
// Recursively compress individual files in node_modules
$context->run('gzip -r /build/node_modules -k -f');
}
Expand Down

0 comments on commit a77ae69

Please sign in to comment.