Skip to content

Commit

Permalink
fix(compute/build): only use default build script if none defined (#814)
Browse files Browse the repository at this point in the history
  • Loading branch information
Integralist committed Feb 13, 2023
1 parent 752ef8f commit b819e3f
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions pkg/commands/compute/language_javascript.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,17 @@ type JavaScript struct {
func (j *JavaScript) Build(out io.Writer, progress text.Progress, verbose bool, callback func() error) error {
var noBuildScript bool
if j.build == "" {
j.build = JsDefaultBuildCommand
noBuildScript = true
}

usesWebpack, err := j.checkForWebpack()
if err != nil {
return err
}
if usesWebpack {
j.build = JsDefaultBuildCommandForWebpack
j.build = JsDefaultBuildCommand

usesWebpack, err := j.checkForWebpack()
if err != nil {
return err
}
if usesWebpack {
j.build = JsDefaultBuildCommandForWebpack
}
}

if noBuildScript && j.verbose {
Expand Down

0 comments on commit b819e3f

Please sign in to comment.