@gmcb/cli 0.8.8 → 0.8.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/lib/actions/build.js +2 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.8.9](http://10.10.10.16/caoben/front-end/compare/@gmcb/cli@0.8.8...@gmcb/cli@0.8.9) (2026-07-16)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [0.8.8](http://10.10.10.16/caoben/front-end/compare/@gmcb/cli@0.8.7...@gmcb/cli@0.8.8) (2026-07-16)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @gmcb/cli
|
package/lib/actions/build.js
CHANGED
|
@@ -337,6 +337,8 @@ async function fetchRemoteResources(opts) {
|
|
|
337
337
|
try {
|
|
338
338
|
// 已有目录:fetch 目标分支 + 校验远程分支 + 切换 + pull
|
|
339
339
|
const repoGit = (0, simple_git_1.default)(repoDir);
|
|
340
|
+
// 0. 撤销上次构建残留的本地修改,防止拉取冲突
|
|
341
|
+
await repoGit.reset(['--hard']);
|
|
340
342
|
// 1. 拉取目标分支(显式指定,不受 --single-branch refspec 限制)
|
|
341
343
|
// --prune 确保远程已删除的分支不会残留在本地引用中
|
|
342
344
|
await repoGit.fetch('origin', `+refs/heads/${branch}:refs/remotes/origin/${branch}`, ['--prune']);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gmcb/cli",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.9",
|
|
4
4
|
"description": "工茂草本前端命令行工具",
|
|
5
5
|
"author": "yinjiazeng@163.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"@types/rimraf": "^4.0.5",
|
|
60
60
|
"@types/user-home": "^2.0.2"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "bbab898cd0854797c1dc2e52d3821b99a15890ac"
|
|
63
63
|
}
|