Skip to content

Commit

Permalink
fix: n+1 instead of n selected in interactive mode
Browse files Browse the repository at this point in the history
  • Loading branch information
omznc committed Nov 22, 2023
1 parent 4c224f5 commit bfa84d1
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nrush"
version = "1.0.4"
version = "1.0.5"
edition = "2021"
description = "A speedy way to get your node project up to date, and probably break things."

Expand Down
16 changes: 8 additions & 8 deletions npm/app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions npm/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nrush",
"version": "1.0.4",
"version": "1.0.5",
"author": "Omar Zunic <nrush@omarzunic.com> (https://omarzunic.com)",
"homepage": "https://github.com/omznc/nrush#readme",
"repository": "github:omznc/nrush",
Expand Down Expand Up @@ -38,12 +38,12 @@
"typescript": "^4.9.4"
},
"optionalDependencies": {
"nrush-linux-x64": "1.0.4",
"nrush-linux-arm64": "1.0.4",
"nrush-darwin-x64": "1.0.4",
"nrush-darwin-arm64": "1.0.4",
"nrush-windows-x64": "1.0.4",
"nrush-windows-arm64": "1.0.4"
"nrush-linux-x64": "1.0.5",
"nrush-linux-arm64": "1.0.5",
"nrush-darwin-x64": "1.0.5",
"nrush-darwin-arm64": "1.0.5",
"nrush-windows-x64": "1.0.5",
"nrush-windows-arm64": "1.0.5"
},
"eslintConfig": {
"extends": [
Expand Down
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ async fn main() {
type_str
));
}
items.sort_by(|a, b| package_ranking(a).cmp(&package_ranking(b)));
items
};

Expand Down Expand Up @@ -243,6 +242,8 @@ async fn main() {
.interact()
.expect("Failed to read user input");

// print selections

for selection in selections {
selected.push(selection);
}
Expand Down

0 comments on commit bfa84d1

Please sign in to comment.