Skip to content

Commit faa8f3c

Browse files
authored
package.json name different from module name cause panic (#167)
1 parent 4f6d0f9 commit faa8f3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/build/packages.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ fn read_packages(
476476
dependencies.iter().for_each(|d| {
477477
if !map.contains_key(&d.name) {
478478
let package = make_package(d.config.to_owned(), &d.path, d.is_pinned, false);
479-
map.insert(package.name.to_string(), package);
479+
map.insert(d.name.to_string(), package);
480480
}
481481
});
482482

0 commit comments

Comments
 (0)