Skip to content

Commit

Permalink
fix: release 脚本 体验优化,build 脚本 bug 修复
Browse files Browse the repository at this point in the history
release 脚本 体验优化,build 脚本 bug 修复
  • Loading branch information
hewx815 committed Jun 12, 2023
1 parent edf8f05 commit 8435253
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cli/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ const startBuild = async () => {

spawn('yarn vitepress build', { shell: true, stdio: 'inherit' });

fs.renameSync(newVue2PackagePath, newVue2PackagePath);
if (fs.existsSync(newVue2PackagePath)) {
fs.renameSync(newVue2PackagePath, vue2PackagePath);
}
};

startBuild();
2 changes: 2 additions & 0 deletions cli/scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ const log = (message) => {

// 升级版本号=>打包=>发布=>提交代码=>部署文档
const main = async () => {
console.clear();

log(`开始: 升级版本号 => 打包 => 发布 => 上传代码 => 上传标签 => 部署文档
>>>请勿手动退出!!!<<<`);
Expand Down

0 comments on commit 8435253

Please sign in to comment.