Skip to content

Commit 61b0f2b

Browse files
author
zhangjian10
authored
Merge pull request #430 from nocalhost/fix/version-incorrect
Update prebuild.js
2 parents 32b0439 + 5cc16db commit 61b0f2b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/prebuild.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ if (version) {
2222
version = matched[0];
2323

2424
packageJson.version = version;
25+
packageJson.nhctl.version = version;
2526

2627
require("./updateChangelog");
2728
} else {
@@ -31,7 +32,6 @@ if (version) {
3132
if (process.env.CI === "true") {
3233
env = "beta";
3334

34-
// execSync("git fetch --depth=30");
3535
const rev = execSync(`git rev-parse --short HEAD`)
3636
.toString()
3737
.split("\n")[0];

0 commit comments

Comments
 (0)