@@ -43,21 +43,21 @@ import fsp from 'fs/promises'
43
43
name : 'dummy-package' ,
44
44
version : '1.0.0' ,
45
45
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 ,
54
54
} ,
55
55
packageManager,
56
56
}
57
57
fs . writeFileSync ( path . join ( tmpdir , 'package.json' ) , JSON . stringify ( pkgJson ) )
58
58
fs . writeFileSync ( path . join ( tmpdir , '.npmrc' ) , 'node-linker=hoisted' )
59
59
60
- let { stdout } = await execa ( 'pnpm' , [ 'add' , ' next@canary' ] , {
60
+ let { stdout } = await execa ( 'pnpm' , [ 'add' , ` next@${ nextVersion } ` ] , {
61
61
cwd : tmpdir ,
62
62
} )
63
63
console . log ( stdout )
0 commit comments