Skip to content

Commit

Permalink
chore: 修改版本号规则
Browse files Browse the repository at this point in the history
  • Loading branch information
aooiuu committed Jul 30, 2024
1 parent d6a021e commit 5fb873e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vscode/scripts/publish.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async function publish() {
if (pkg.version.includes('-')) {
// 非正式版
const version = parseVersion(pkg.version);
pkg.version = pkg.version.replace(/\.\d+\-.*?$/, '.' + (10000 + version.build));
pkg.version = pkg.version.replace(/\.\d+\-.*?$/, '.' + (10000 * version.patch + version.build));
}

const outputDir = path.join(root, 'dist');
Expand Down

0 comments on commit 5fb873e

Please sign in to comment.