From 23a7d31ed50bbc289cc37502901f21235995e495 Mon Sep 17 00:00:00 2001 From: nojaf Date: Tue, 15 Jul 2025 10:52:10 +0200 Subject: [PATCH 1/2] Only get dev_deps from local packages --- rewatch/src/build/packages.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rewatch/src/build/packages.rs b/rewatch/src/build/packages.rs index c5bc613f76..3ab8e1e308 100644 --- a/rewatch/src/build/packages.rs +++ b/rewatch/src/build/packages.rs @@ -550,7 +550,7 @@ fn extend_with_children( Path::new(&package.path), filter, source, - build_dev_deps, + package.is_local_dep && build_dev_deps, ) }) .collect::>>() From b446197eaa96a09f1d0e53946e52847f4f1b040a Mon Sep 17 00:00:00 2001 From: nojaf Date: Tue, 15 Jul 2025 11:33:42 +0200 Subject: [PATCH 2/2] Add changelog entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b24b5783f3..61c7de848f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ - Remove obsolete option `-bs-unsafe-empty-array`. https://github.com/rescript-lang/rescript/pull/7635 - Clean up `config.ml`. https://github.com/rescript-lang/rescript/pull/7636 - Rewatch: simplify getting bsc path. https://github.com/rescript-lang/rescript/pull/7634 +- Rewatch: only get `"type": "dev"` source files for local packages. https://github.com/rescript-lang/rescript/pull/7646 #### :rocket: New Feature