Skip to content

Commit dd768f2

Browse files
committed
Rewatch: fix panic if package.json name different from module name
1 parent 65c599f commit dd768f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rewatch/src/build/packages.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ fn read_packages(
470470
dependencies.iter().for_each(|d| {
471471
if !map.contains_key(&d.name) {
472472
let package = make_package(d.config.to_owned(), &d.path, d.is_pinned, false);
473-
map.insert(package.name.to_string(), package);
473+
map.insert(d.name.to_string(), package);
474474
}
475475
});
476476

0 commit comments

Comments
 (0)