Skip to content

Commit 93b103d

Browse files
authored
Don't format and don't check formatting of dependencies (#7748)
* Don't format and don't check formatting of dependencies * Add CHANGELOG
1 parent 640bb93 commit 93b103d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#### :bug: Bug fix
2222

2323
- Fix formatting of nested records in `.resi` files. https://github.com/rescript-lang/rescript/pull/7741
24+
- Don't format and don't check formatting of dependencies. https://github.com/rescript-lang/rescript/pull/7748
2425

2526
#### :memo: Documentation
2627

rewatch/src/format.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ fn get_all_files() -> Result<Vec<String>> {
4242
let mut files: Vec<String> = Vec::new();
4343

4444
for (_package_name, package) in build_state {
45-
if let Some(source_files) = package.source_files {
45+
if package.is_local_dep
46+
&& let Some(source_files) = package.source_files
47+
{
4648
for (path, _metadata) in source_files {
4749
if let Some(extension) = path.extension() {
4850
if extension == "res" || extension == "resi" {

0 commit comments

Comments
 (0)