Unverified Commit d3564582 authored by Jan Kaifer's avatar Jan Kaifer Committed by GitHub

Switch from `yarn pack` to `pnpm pack` in tests (#45167)

We couldn't swithc before because `pnpm` was not bundling files in `native` but that was caused by differences between `yarn` and `pnpm` implementation.
parent a5bfc5a1
......@@ -62,7 +62,7 @@ const main = async () => {
// Ensure that we bundle binaries with swc
if (currentPkgDirname === 'next-swc') {
packageJson.files = packageJson.files ?? []
packageJson.files.push('native')
packageJson.files.push('native/*')
console.log('using swc binaries:')
await execa('ls', [
......@@ -93,7 +93,7 @@ const main = async () => {
packageJson.version
}.tgz`
)
await execa('yarn', ['pack', '-f', tmpTarball], {
await execa('pnpm', ['pack'], {
cwd: tmpPkgPath,
})
await fs.copyFile(tmpTarball, getPackedPkgPath(currentPkgDirname))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment