Skip to content

Commit 3510f52

Browse files
committed
fix: bug
1 parent ed80164 commit 3510f52

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pri",
3-
"version": "4.0.0",
3+
"version": "4.0.1",
44
"types": "src/node/index.ts",
55
"main": "built/node/index.js",
66
"scripts": {

src/built-in-plugins/command-publish/plugin/utils.ts

+3
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,10 @@ export async function generateVersion(
178178
} else {
179179
logFatal('semver must be "patch" "minor" or "major"');
180180
}
181+
} else {
182+
version = targetPackageJson.version;
181183
}
184+
182185
return version;
183186
}
184187

0 commit comments

Comments
 (0)