Skip to content

Commit

Permalink
chore: try to fix yarn on Node.js v14
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Aug 22, 2023
1 parent eb15622 commit 99d79ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/node/test/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async function setup(cwd) {

if (process.version.startsWith('v14')) {
const pm = LAVAMOAT_PM.startsWith('npm') ? 'npm' : 'yarn'
const args = pm === 'yarn' ? ['--frozen-lockfile'] : [];
const args = pm === 'yarn' ? ['--pure-lockfile'] : [];
console.warn(`Node.js ${process.version} cannot use corepack; attempting to use system ${pm}`)
await exec(pm, ['install', ...args], { cwd })
await exec(pm, ['run', 'setup'], { cwd })
Expand Down

0 comments on commit 99d79ee

Please sign in to comment.