From e513f0591051ba4557bc2d9e28911bbca95c3897 Mon Sep 17 00:00:00 2001 From: Zack Tanner Date: Sun, 23 Jul 2023 09:01:23 -0700 Subject: [PATCH] update install-native postinstall to pnpm --- scripts/install-native.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/install-native.mjs b/scripts/install-native.mjs index 84b38263143a8..e61e611bce288 100644 --- a/scripts/install-native.mjs +++ b/scripts/install-native.mjs @@ -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'))