Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
Remove yarn npm requirement (#1824)
Browse files Browse the repository at this point in the history
Fixes #1772.
  • Loading branch information
stanislas-m authored and paganotoni committed Nov 1, 2019
1 parent 7e9c277 commit a766a32
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions genny/assets/webpack/webpack.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ func New(opts *Options) (*genny.Generator, error) {
}

g.RunFn(func(r *genny.Runner) error {
if opts.App.WithYarn {
if _, err := r.LookPath("yarnpkg"); err == nil {
return nil
}
// If yarn is not installed, it still can be installed with npm.
}
if _, err := r.LookPath("npm"); err != nil {
return fmt.Errorf("could not find npm executable")
}
Expand Down

0 comments on commit a766a32

Please sign in to comment.