diff --git a/CHANGELOG.md b/CHANGELOG.md index 533561135a..7975aa8f4e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ #### :bug: Bug fix - Fix formatting of nested records in `.resi` files. https://github.com/rescript-lang/rescript/pull/7741 +- Don't format and don't check formatting of dependencies. https://github.com/rescript-lang/rescript/pull/7748 #### :memo: Documentation diff --git a/rewatch/src/format.rs b/rewatch/src/format.rs index bbcb0b46d9..742a7a1511 100644 --- a/rewatch/src/format.rs +++ b/rewatch/src/format.rs @@ -42,7 +42,9 @@ fn get_all_files() -> Result> { let mut files: Vec = Vec::new(); for (_package_name, package) in build_state { - if let Some(source_files) = package.source_files { + if package.is_local_dep + && let Some(source_files) = package.source_files + { for (path, _metadata) in source_files { if let Some(extension) = path.extension() { if extension == "res" || extension == "resi" {