Skip to content

Commit

Permalink
Merge pull request #285 from lucor/fix/web-rename-destination-folder
Browse files Browse the repository at this point in the history
web: update destination folder
  • Loading branch information
lucor authored Jan 12, 2025
2 parents 3f364f7 + 5975fb6 commit e9f4650
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions internal/command/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ type web struct {
defaultContext Context
}

var _ platformBuilder = (*web)(nil)
var _ Command = (*web)(nil)
var (
_ platformBuilder = (*web)(nil)
_ Command = (*web)(nil)
)

func NewWebCommand() *web {
return &web{}
Expand Down Expand Up @@ -79,7 +81,7 @@ func (cmd *web) Build(image containerImage) (string, error) {
}

// move the dist package into the "tmp" folder
srcFile := volume.JoinPathContainer(cmd.defaultContext.WorkDirContainer(), "web")
srcFile := volume.JoinPathContainer(cmd.defaultContext.WorkDirContainer(), "wasm")
dstFile := volume.JoinPathContainer(cmd.defaultContext.TmpDirContainer(), image.ID())
return "", image.Run(cmd.defaultContext.Volume, options{}, []string{"mv", srcFile, dstFile})
}
Expand Down

0 comments on commit e9f4650

Please sign in to comment.