File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
packages/open-next/src/build Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @opennextjs/aws " : patch
3
+ ---
4
+
5
+ fix: only report actually copied traced files
Original file line number Diff line number Diff line change @@ -243,12 +243,16 @@ File ${fullFilePath} does not exist
243
243
computeCopyFilesForPage ( route ) ;
244
244
} ) ;
245
245
246
+ // Only files that are actually copied
247
+ const tracedFiles : string [ ] = [ ] ;
248
+
246
249
//Actually copy the files
247
250
filesToCopy . forEach ( ( to , from ) => {
248
251
// We don't want to copy excluded packages (i.e sharp)
249
252
if ( isExcluded ( from ) ) {
250
253
return ;
251
254
}
255
+ tracedFiles . push ( to ) ;
252
256
mkdirSync ( path . dirname ( to ) , { recursive : true } ) ;
253
257
let symlink = null ;
254
258
// For pnpm symlink we need to do that
@@ -355,7 +359,7 @@ File ${fullFilePath} does not exist
355
359
logger . debug ( "copyTracedFiles:" , Date . now ( ) - tsStart , "ms" ) ;
356
360
357
361
return {
358
- tracedFiles : Array . from ( filesToCopy . values ( ) ) ,
362
+ tracedFiles,
359
363
manifests : getManifests ( standaloneNextDir ) ,
360
364
} ;
361
365
}
You can’t perform that action at this time.
0 commit comments