@@ -306,7 +306,7 @@ pub fn incremental_build(
306306 }
307307 }
308308 if helpers:: contains_ascii_characters ( & parse_warnings) {
309- println ! ( "{}" , & parse_warnings) ;
309+ eprintln ! ( "{}" , & parse_warnings) ;
310310 }
311311
312312 mark_modules_with_expired_deps_dirty ( build_state) ;
@@ -371,7 +371,7 @@ pub fn incremental_build(
371371 }
372372 }
373373 if helpers:: contains_ascii_characters ( & compile_warnings) {
374- println ! ( "{}" , & compile_warnings) ;
374+ eprintln ! ( "{}" , & compile_warnings) ;
375375 }
376376 if initial_build {
377377 log_config_warnings ( build_state) ;
@@ -400,7 +400,7 @@ pub fn incremental_build(
400400 }
401401
402402 if helpers:: contains_ascii_characters ( & compile_warnings) {
403- println ! ( "{}" , & compile_warnings) ;
403+ eprintln ! ( "{}" , & compile_warnings) ;
404404 }
405405 if initial_build {
406406 log_config_warnings ( build_state) ;
@@ -451,21 +451,21 @@ fn log_deprecated_config_field(package_name: &str, field_name: &str, new_field_n
451451 "The field '{field_name}' found in the package config of '{package_name}' is deprecated and will be removed in a future version.\n \
452452 Use '{new_field_name}' instead."
453453 ) ;
454- println ! ( "\n {}" , style( warning) . yellow( ) ) ;
454+ eprintln ! ( "\n {}" , style( warning) . yellow( ) ) ;
455455}
456456
457457fn log_unsupported_config_field ( package_name : & str , field_name : & str ) {
458458 let warning = format ! (
459459 "The field '{field_name}' found in the package config of '{package_name}' is not supported by ReScript 12's new build system."
460460 ) ;
461- println ! ( "\n {}" , style( warning) . yellow( ) ) ;
461+ eprintln ! ( "\n {}" , style( warning) . yellow( ) ) ;
462462}
463463
464464fn log_unknown_config_field ( package_name : & str , field_name : & str ) {
465465 let warning = format ! (
466466 "Unknown field '{field_name}' found in the package config of '{package_name}'. This option will be ignored."
467467 ) ;
468- println ! ( "\n {}" , style( warning) . yellow( ) ) ;
468+ eprintln ! ( "\n {}" , style( warning) . yellow( ) ) ;
469469}
470470
471471// write build.ninja files in the packages after a non-incremental build
0 commit comments