From 90f9a7de88536309ae179d41612879f44493b60d Mon Sep 17 00:00:00 2001 From: Alexandru Dima Date: Fri, 18 Dec 2020 10:14:08 +0100 Subject: [PATCH] Execute `yarn --ignore-engines` for extensions --- build/npm/postinstall.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build/npm/postinstall.js b/build/npm/postinstall.js index 8ec98a72693..6a4d7a9f717 100644 --- a/build/npm/postinstall.js +++ b/build/npm/postinstall.js @@ -21,6 +21,10 @@ function yarnInstall(location, opts) { const argv = JSON.parse(raw); const original = argv.original || []; const args = original.filter(arg => arg === '--ignore-optional' || arg === '--frozen-lockfile'); + if (opts.ignoreEngines) { + args.push('--ignore-engines'); + delete opts.ignoreEngines; + } console.log(`Installing dependencies in ${location}...`); console.log(`$ yarn ${args.join(' ')}`); @@ -53,7 +57,7 @@ const extensions = allExtensionFolders.filter(e => { } }); -extensions.forEach(extension => yarnInstall(`extensions/${extension}`)); +extensions.forEach(extension => yarnInstall(`extensions/${extension}`, { ignoreEngines: true })); function yarnInstallBuildDependencies() { // make sure we install the deps of build/lib/watch for the system installed -- GitLab