Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 794cb0d

Browse files
committedApr 8, 2020
fix(publish): fixed is not a function error
syntax is not compatible with latest version of semver
1 parent efda28c commit 794cb0d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎lib/publish.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ module.exports = async (pluginConfig, { nextRelease: { version }, logger }) => {
4848

4949
try {
5050
// parse version to parts
51-
const { major, minor, patch, prerelease } = semver(version)
51+
const major = semver.major(version)
52+
const minor = semver.minor(version)
53+
const patch = semver.patch(version)
54+
const prerelease = semver.prerelease(version)
5255
const isProdRelease = prerelease.length === 0
5356

5457
// first release version as it is

0 commit comments

Comments
 (0)
Please sign in to comment.