Skip to content

Commit

Permalink
fix: Rule error in parsing the bin configuration item of package.json.
Browse files Browse the repository at this point in the history
Signed-off-by: The1111mp <[email protected]>
  • Loading branch information
1111mp committed Dec 6, 2023
1 parent 2eee75c commit 1776bc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/run/npm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ fn get_package_bin_names(npm_perfix: &String, packages: &Vec<OsString>) -> Vec<S
let bin = &json["bin"];

if bin.is_string() {
let name = json["bin"].as_str().unwrap();
let name = json["name"].as_str().unwrap();
package_bin_names.push(String::from(name));
} else {
let keys = json["bin"].as_object().unwrap();
Expand Down

0 comments on commit 1776bc4

Please sign in to comment.