@@ -43,21 +43,21 @@ import fsp from 'fs/promises'
4343 name : 'dummy-package' ,
4444 version : '1.0.0' ,
4545 optionalDependencies : {
46- '@next/swc-darwin-arm64' : 'canary' ,
47- '@next/swc-darwin-x64' : 'canary' ,
48- '@next/swc-linux-arm64-gnu' : 'canary' ,
49- '@next/swc-linux-arm64-musl' : 'canary' ,
50- '@next/swc-linux-x64-gnu' : 'canary' ,
51- '@next/swc-linux-x64-musl' : 'canary' ,
52- '@next/swc-win32-arm64-msvc' : 'canary' ,
53- '@next/swc-win32-x64-msvc' : 'canary' ,
46+ '@next/swc-darwin-arm64' : nextVersion ,
47+ '@next/swc-darwin-x64' : nextVersion ,
48+ '@next/swc-linux-arm64-gnu' : nextVersion ,
49+ '@next/swc-linux-arm64-musl' : nextVersion ,
50+ '@next/swc-linux-x64-gnu' : nextVersion ,
51+ '@next/swc-linux-x64-musl' : nextVersion ,
52+ '@next/swc-win32-arm64-msvc' : nextVersion ,
53+ '@next/swc-win32-x64-msvc' : nextVersion ,
5454 } ,
5555 packageManager,
5656 }
5757 fs . writeFileSync ( path . join ( tmpdir , 'package.json' ) , JSON . stringify ( pkgJson ) )
5858 fs . writeFileSync ( path . join ( tmpdir , '.npmrc' ) , 'node-linker=hoisted' )
5959
60- let { stdout } = await execa ( 'pnpm' , [ 'add' , ' next@canary' ] , {
60+ let { stdout } = await execa ( 'pnpm' , [ 'add' , ` next@${ nextVersion } ` ] , {
6161 cwd : tmpdir ,
6262 } )
6363 console . log ( stdout )
0 commit comments