@@ -20,7 +20,8 @@ describeBuilder(buildApplication, APPLICATION_BUILDER_INFO, (harness) => {
2020 // Enable tsconfig resolveJsonModule option in tsconfig
2121 await harness . modifyFile ( 'tsconfig.json' , ( content ) => {
2222 const tsconfig = JSON . parse ( content ) ;
23- tsconfig . compilerOptions . moduleResolution = 'node' ;
23+ tsconfig . compilerOptions . moduleResolution = 'node16' ;
24+ tsconfig . compilerOptions . module = 'node16' ;
2425 tsconfig . compilerOptions . resolveJsonModule = true ;
2526
2627 return JSON . stringify ( tsconfig ) ;
@@ -44,7 +45,8 @@ describeBuilder(buildApplication, APPLICATION_BUILDER_INFO, (harness) => {
4445 // Enable tsconfig resolveJsonModule option in tsconfig
4546 await harness . modifyFile ( 'tsconfig.json' , ( content ) => {
4647 const tsconfig = JSON . parse ( content ) ;
47- tsconfig . compilerOptions . moduleResolution = 'node' ;
48+ tsconfig . compilerOptions . moduleResolution = 'node16' ;
49+ tsconfig . compilerOptions . module = 'node16' ;
4850 tsconfig . compilerOptions . resolveJsonModule = undefined ;
4951
5052 return JSON . stringify ( tsconfig ) ;
@@ -73,7 +75,8 @@ describeBuilder(buildApplication, APPLICATION_BUILDER_INFO, (harness) => {
7375 // Enable tsconfig resolveJsonModule option in tsconfig
7476 await harness . modifyFile ( 'tsconfig.json' , ( content ) => {
7577 const tsconfig = JSON . parse ( content ) ;
76- tsconfig . compilerOptions . moduleResolution = 'node' ;
78+ tsconfig . compilerOptions . moduleResolution = 'node16' ;
79+ tsconfig . compilerOptions . module = 'node16' ;
7780 tsconfig . compilerOptions . resolveJsonModule = false ;
7881
7982 return JSON . stringify ( tsconfig ) ;
0 commit comments