@@ -254,6 +254,20 @@ namespace ts {
254
254
[ Diagnostics . Building_project_0 , "/src/tests/tsconfig.json" ] ,
255
255
) ;
256
256
} ) ;
257
+
258
+ it ( "rebuilds when tsconfig changes" , ( ) => {
259
+ const { fs, host, builder } = initializeWithBuild ( ) ;
260
+ replaceText ( fs , "/src/tests/tsconfig.json" , `"composite": true` , `"composite": true, "target": "es3"` ) ;
261
+ builder . buildAllProjects ( ) ;
262
+ host . assertDiagnosticMessages (
263
+ getExpectedDiagnosticForProjectsInBuild ( "src/core/tsconfig.json" , "src/logic/tsconfig.json" , "src/tests/tsconfig.json" ) ,
264
+ [ Diagnostics . Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2 , "src/core/tsconfig.json" , "src/core/anotherModule.ts" , "src/core/anotherModule.js" ] ,
265
+ [ Diagnostics . Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2 , "src/logic/tsconfig.json" , "src/logic/index.ts" , "src/logic/index.js" ] ,
266
+ [ Diagnostics . Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2 , "src/tests/tsconfig.json" , "src/tests/index.js" , "src/tests/tsconfig.json" ] ,
267
+ [ Diagnostics . Building_project_0 , "/src/tests/tsconfig.json" ] ,
268
+ [ Diagnostics . Updating_unchanged_output_timestamps_of_project_0 , "/src/tests/tsconfig.json" ]
269
+ ) ;
270
+ } ) ;
257
271
} ) ;
258
272
259
273
describe ( "downstream-blocked compilations" , ( ) => {
0 commit comments