Skip to content
Snippets Groups Projects
Commit 4868a0e9 authored by Mathias Schreck's avatar Mathias Schreck Committed by Rhys Arkins
Browse files

fix: strip yarn-path option from yarnrc (#2311)

Removing the `yarn-path` option from `yarnrc` makes sure that renovate always uses its bundled version of `yarn`.

Closes #2310
parent 785ff84c
No related branches found
Tags mariadb-0.5.5
No related merge requests found
...@@ -176,7 +176,9 @@ async function writeExistingFiles(config, packageFiles) { ...@@ -176,7 +176,9 @@ async function writeExistingFiles(config, packageFiles) {
logger.debug(`Writing .yarnrc to ${basedir}`); logger.debug(`Writing .yarnrc to ${basedir}`);
await fs.outputFile( await fs.outputFile(
upath.join(basedir, '.yarnrc'), upath.join(basedir, '.yarnrc'),
packageFile.yarnrc.replace('--install.pure-lockfile true', '') packageFile.yarnrc
.replace('--install.pure-lockfile true', '')
.replace(/^yarn-path.*$/m, '')
); );
} }
const { npmLock } = packageFile; const { npmLock } = packageFile;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment