File tree 3 files changed +18
-3
lines changed
.github/actions/next-stats-action
3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change
1
+ # Ignore everything in this directory
2
+ *
3
+ # Except this file
4
+ ! .gitignore
Original file line number Diff line number Diff line change @@ -65,7 +65,11 @@ module.exports = (actionInfo) => {
65
65
* @param {{ repoDir: string, nextSwcVersion: null | string } } options Required options
66
66
* @returns {Promise<Map<string, string>> } List packages key is the package name, value is the path to the packed tar file.'
67
67
*/
68
- async linkPackages ( { repoDir, nextSwcVersion, parentSpan } ) {
68
+ async linkPackages ( {
69
+ repoDir,
70
+ nextSwcVersion : nextSwcVersionSpecified ,
71
+ parentSpan,
72
+ } ) {
69
73
if ( ! parentSpan ) {
70
74
// Not all callers provide a parent span
71
75
parentSpan = mockSpan ( )
@@ -118,6 +122,11 @@ module.exports = (actionInfo) => {
118
122
}
119
123
} )
120
124
125
+ const nextSwcVersion =
126
+ nextSwcVersionSpecified ??
127
+ pkgDatas . get ( '@next/swc' ) ?. packedPackageTarPath ??
128
+ null
129
+
121
130
await parentSpan
122
131
. traceChild ( 'write-packagejson' )
123
132
. traceAsyncFn ( async ( ) => {
@@ -171,9 +180,11 @@ module.exports = (actionInfo) => {
171
180
} )
172
181
if ( nextSwcVersion ) {
173
182
Object . assign ( packageJson . dependencies , {
183
+ // CI
174
184
'@next/swc-linux-x64-gnu' : nextSwcVersion ,
185
+ // Vercel issued laptops
186
+ '@next/swc-darwin-arm64' : nextSwcVersion ,
175
187
} )
176
- } else {
177
188
}
178
189
}
179
190
Original file line number Diff line number Diff line change 3
3
"private" : true ,
4
4
"license" : " MIT" ,
5
5
"dependencies" : {
6
- "next" : " 19.0.0-rc-6230622a1a-20240610 " ,
6
+ "next" : " latest " ,
7
7
"react" : " 19.0.0-rc-6230622a1a-20240610" ,
8
8
"react-dom" : " 19.0.0-rc-6230622a1a-20240610"
9
9
},
You can’t perform that action at this time.
0 commit comments