diff options
Diffstat (limited to 'scripts/frontend/postinstall.js')
-rw-r--r-- | scripts/frontend/postinstall.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/frontend/postinstall.js b/scripts/frontend/postinstall.js index 50052bb806e..07456ef36c9 100644 --- a/scripts/frontend/postinstall.js +++ b/scripts/frontend/postinstall.js @@ -1,4 +1,4 @@ -const { execSync } = require('child_process'); +const { spawnSync } = require('child_process'); const chalk = require('chalk'); // check that fsevents is available if we're on macOS @@ -24,5 +24,7 @@ console.log(`${chalk.green('success')} Dependency postinstall check passed.`); // Apply any patches to our packages // See https://gitlab.com/gitlab-org/gitlab/-/issues/336138 -execSync('node_modules/.bin/patch-package --error-on-fail'); -console.log(`${chalk.green('success')} Packages successfully patched.`); +process.exitCode = + spawnSync('node_modules/.bin/patch-package', ['--error-on-fail', '--error-on-warn'], { + stdio: ['ignore', 'inherit', 'inherit'], + }).status ?? 1; |