Skip to content

Commit 3510f52

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

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
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

Lines changed: 3 additions & 0 deletions
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)