From 89200842f1c992db941c16def3ba40bcf8cb14bc Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@keylocation.sg> Date: Thu, 20 Jul 2017 20:24:11 +0200 Subject: [PATCH] =?UTF-8?q?fix(yarn):=20Add=20=E2=80=94ignore-scripts=20wh?= =?UTF-8?q?en=20generating=20yarn.lock?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This should avoid us accidentally trying to “build” anything post-install. --- lib/workers/branch/yarn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/workers/branch/yarn.js b/lib/workers/branch/yarn.js index 5e4e5e5b78..2772c20df1 100644 --- a/lib/workers/branch/yarn.js +++ b/lib/workers/branch/yarn.js @@ -28,7 +28,7 @@ async function generateLockFile( fs.writeFileSync(path.join(tmpDir.name, '.yarnrc'), yarnrcContent); } logger.debug('Spawning yarn install'); - const yarnOptions = ['install']; + const yarnOptions = ['install', '--ignore-scripts']; if (cacheFolder && cacheFolder.length) { logger.debug(`Setting yarn cache folder to ${cacheFolder}`); yarnOptions.push(`--cache-folder ${cacheFolder}`); -- GitLab