@@ -20,9 +20,14 @@ 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
27+ // TODO: TS reports that a deprecation error because `baseUrl` is used,
28+ // but we don't have it in our tsconfig. It may be coming from a dependency.
29+ tsconfig . compilerOptions . ignoreDeprecations = '6.0' ;
30+
2631 return JSON . stringify ( tsconfig ) ;
2732 } ) ;
2833
@@ -44,7 +49,8 @@ describeBuilder(buildApplication, APPLICATION_BUILDER_INFO, (harness) => {
4449 // Enable tsconfig resolveJsonModule option in tsconfig
4550 await harness . modifyFile ( 'tsconfig.json' , ( content ) => {
4651 const tsconfig = JSON . parse ( content ) ;
47- tsconfig . compilerOptions . moduleResolution = 'node' ;
52+ tsconfig . compilerOptions . moduleResolution = 'node16' ;
53+ tsconfig . compilerOptions . module = 'node16' ;
4854 tsconfig . compilerOptions . resolveJsonModule = undefined ;
4955
5056 return JSON . stringify ( tsconfig ) ;
@@ -73,7 +79,8 @@ describeBuilder(buildApplication, APPLICATION_BUILDER_INFO, (harness) => {
7379 // Enable tsconfig resolveJsonModule option in tsconfig
7480 await harness . modifyFile ( 'tsconfig.json' , ( content ) => {
7581 const tsconfig = JSON . parse ( content ) ;
76- tsconfig . compilerOptions . moduleResolution = 'node' ;
82+ tsconfig . compilerOptions . moduleResolution = 'node16' ;
83+ tsconfig . compilerOptions . module = 'node16' ;
7784 tsconfig . compilerOptions . resolveJsonModule = false ;
7885
7986 return JSON . stringify ( tsconfig ) ;
0 commit comments