Execute `yarn --ignore-engines` for extensions

上级 1141224b
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册