Skip to content

Commit

Permalink
feat(update-dependencies): change command
Browse files Browse the repository at this point in the history
Use npm-check-updates instead of npm-check. The latter doesn't work
well with private repositories.
  • Loading branch information
Rickard Natt och Dag committed Feb 21, 2023
1 parent d6137e3 commit cdb1488
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ enum Cli {
},

/// Create GraphQL API
Graphql {
name: String,
},
Graphql { name: String },

/// Install a Node package
Install {
Expand All @@ -105,9 +103,7 @@ enum Cli {
Remove(RemoveCommand),

/// Create a ReScript project
Rescript {
name: String,
},
Rescript { name: String },

/// Display and execute available package.json scripts
Run,
Expand All @@ -118,6 +114,7 @@ enum Cli {
name: String,
},

/// Update dependencies in a npm or yarn project
UpdateDependencies,
}

Expand Down
2 changes: 1 addition & 1 deletion src/utils/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl Npm {
}

fn update() {
helpers::spawn_command("npx", &["npm-check", "--update", "--save-exact"]).unwrap();
helpers::spawn_command("npx", &["npm-check-updates", "--interactive"]).unwrap();
}

fn run(script: &str) {
Expand Down

0 comments on commit cdb1488

Please sign in to comment.