Skip to content

Commit

Permalink
fix: default to correct bin name
Browse files Browse the repository at this point in the history
  • Loading branch information
christophwitzko committed May 26, 2022
1 parent 432a0af commit 502731e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/hooks/releaser.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ func (t *NpmBinaryReleaser) Version() string {
}

func (t *NpmBinaryReleaser) Success(releaseConfig *hooks.SuccessHookConfig) error {

var cfg config.Config
if configData, err := os.ReadFile(".npm-binary-releaser.yaml"); err == nil {
t.Logger.Println("reading config from .npm-binary-releaser.yaml")
Expand All @@ -48,8 +47,8 @@ func (t *NpmBinaryReleaser) Success(releaseConfig *hooks.SuccessHookConfig) erro
if cfg.Homepage == "" {
cfg.Homepage = envInfo.Homepage
}
if cfg.PackageName == "" {
cfg.PackageName = envInfo.PackageName
if cfg.BinName == "" {
cfg.BinName = envInfo.PackageName
}
if cfg.InputBinDirPath == "" {
cfg.TryDefaultInputPaths = true
Expand Down

0 comments on commit 502731e

Please sign in to comment.