Skip to content

Commit

Permalink
fix: import semver as default import
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Sep 1, 2022
1 parent d0ef976 commit 3bd0b61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/semver.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { promises as fsp } from 'fs'
import { resolve } from 'path'
import * as semver from 'semver'
import semver from 'semver'
import consola from 'consola'
import type { ChangelogConfig } from './config'
import type { GitCommit } from './git'
Expand Down Expand Up @@ -40,6 +40,7 @@ export async function bumpVersion (commits: GitCommit[], config: ChangelogConfig
}

if (type) {
// eslint-disable-next-line import/no-named-as-default-member
pkg.version = semver.inc(currentVersion, type)
}

Expand Down

0 comments on commit 3bd0b61

Please sign in to comment.