File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed
packages/open-next/src/build Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @opennextjs/aws " : patch
3
+ ---
4
+
5
+ chore: Exclude more packages
6
+
7
+ Will skip these packages now aswell:
8
+
9
+ - "typescript"
10
+ - "next/dist/compiled/babel"
11
+ - "next/dist/compiled/babel-packages"
12
+ - "next/dist/compiled/amphtml-validator"
Original file line number Diff line number Diff line change @@ -39,9 +39,13 @@ const EXCLUDED_PACKAGES = [
39
39
// This seems to be only in Next 15
40
40
// Some of sharp deps are under the @img scope
41
41
"@img" ,
42
+ "typescript" ,
43
+ "next/dist/compiled/babel" ,
44
+ "next/dist/compiled/babel-packages" ,
45
+ "next/dist/compiled/amphtml-validator" ,
42
46
] ;
43
47
44
- function isExcluded ( srcPath : string ) {
48
+ function isExcluded ( srcPath : string ) : boolean {
45
49
return EXCLUDED_PACKAGES . some ( ( excluded ) =>
46
50
srcPath . match ( getCrossPlatformPathRegex ( `/node_modules/${ excluded } /` ) ) ,
47
51
) ;
@@ -250,10 +254,9 @@ File ${serverPath} does not exist
250
254
251
255
// Only files that are actually copied
252
256
const tracedFiles : string [ ] = [ ] ;
253
-
254
257
//Actually copy the files
255
258
filesToCopy . forEach ( ( to , from ) => {
256
- // We don't want to copy excluded packages (i.e sharp)
259
+ // We don't want to copy excluded packages (e.g. sharp)
257
260
if ( isExcluded ( from ) ) {
258
261
return ;
259
262
}
You can’t perform that action at this time.
0 commit comments