Skip to content

Commit

Permalink
fix change dependency command
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseduffield committed Apr 12, 2020
1 parent 7fec596 commit 66d34c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/gui/dependencies_panel.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ func (gui *Gui) wrappedDependencyHandler(f func(*commands.Dependency) error) fun
}

func (gui *Gui) handleChangeDepType(dep *commands.Dependency) error {
installProd := "npm install --save-prod"
installDev := "npm install --save-dev"
installOptional := "npm install --save-optional"
installProd := fmt.Sprintf("npm install --save-prod %s", dep.Name)
installDev := fmt.Sprintf("npm install --save-dev %s", dep.Name)
installOptional := fmt.Sprintf("npm install --save-optional %s", dep.Name)

menuItems := []*menuItem{
{
Expand Down

0 comments on commit 66d34c0

Please sign in to comment.