Skip to content

Commit

Permalink
Revert "Changed package manager for install-native.mjs to pnpm (#52971)…
Browse files Browse the repository at this point in the history
…" (#53032)

This was causing issues with installing swc binaries (appears to be creating corrupt aliases in `node_modules/@next` rather than the actual resolved swc package)

Since pnpm creates hard links on disk, the files being moved aren't the actual binaries, they're just aliases. And when tmpdir gets removed, the aliases point to nothing
  • Loading branch information
ztanner committed Jul 22, 2023
1 parent 1398de9 commit 83d0f1e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/install-native.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ import fs from 'fs-extra'
path.join(tmpdir, 'package.json'),
JSON.stringify(pkgJson)
)
let { stdout } = await execa('pnpm', ['install', '--force'], {
cwd: tmpdir,
})
let { stdout } = await execa('yarn', ['--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 83d0f1e

Please sign in to comment.