Skip to content

Commit

Permalink
update install-native postinstall to use pnpm (#53080)
Browse files Browse the repository at this point in the history
Relands #52971 but with `node-linker=hoisted` to mimic the behavior of yarn classic (ie, doesn't create a symlink)

- Original: #52971
- Revert #53032
  • Loading branch information
ztanner committed Jul 24, 2023
1 parent c355fb1 commit 5f16176
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/install-native.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ import fs from 'fs-extra'
path.join(tmpdir, 'package.json'),
JSON.stringify(pkgJson)
)
let { stdout } = await execa('yarn', ['--force'], { cwd: tmpdir })
await fs.writeFile(path.join(tmpdir, '.npmrc'), 'node-linker=hoisted')
let { stdout } = await execa('pnpm', ['install', '--force'], {
cwd: tmpdir,
})
console.log(stdout)
let pkgs = await fs.readdir(path.join(tmpdir, 'node_modules/@next'))
await fs.ensureDir(path.join(cwd, 'node_modules/@next'))
Expand Down

0 comments on commit 5f16176

Please sign in to comment.