Skip to content

Commit

Permalink
Update install-native script to avoid pnpm cache (vercel#54462)
Browse files Browse the repository at this point in the history
Seems this sometimes pulls from pnpm cache instead of checking for newer canary version so this updates to use `pnpm add` instead which should help here.
  • Loading branch information
ijjk committed Aug 23, 2023
1 parent 7363bf4 commit 7a6b6c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/install-native.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ import fs from 'fs-extra'
JSON.stringify(pkgJson)
)
await fs.writeFile(path.join(tmpdir, '.npmrc'), 'node-linker=hoisted')
let { stdout } = await execa('pnpm', ['install'], {
let { stdout } = await execa('pnpm', ['add', 'next@canary'], {
cwd: tmpdir,
})
console.log(stdout)
Expand Down

0 comments on commit 7a6b6c8

Please sign in to comment.