Skip to content

Commit 307da9a

Browse files
authored
Only get dev_deps from local packages (#7646)
* Only get dev_deps from local packages * Add changelog entry
1 parent e753b53 commit 307da9a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
- Remove obsolete option `-bs-unsafe-empty-array`. https://github.com/rescript-lang/rescript/pull/7635
2525
- Clean up `config.ml`. https://github.com/rescript-lang/rescript/pull/7636
2626
- Rewatch: simplify getting bsc path. https://github.com/rescript-lang/rescript/pull/7634
27+
- Rewatch: only get `"type": "dev"` source files for local packages. https://github.com/rescript-lang/rescript/pull/7646
2728

2829
#### :rocket: New Feature
2930

rewatch/src/build/packages.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ fn extend_with_children(
550550
Path::new(&package.path),
551551
filter,
552552
source,
553-
build_dev_deps,
553+
package.is_local_dep && build_dev_deps,
554554
)
555555
})
556556
.collect::<Vec<AHashMap<PathBuf, SourceFileMeta>>>()

0 commit comments

Comments
 (0)