@gmcb/cli 0.9.13 → 0.9.14

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 CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  <!-- release:insert -->
4
4
 
5
+ ## 0.9.14 [2026-11-16]
6
+ <!-- generated-by: specs -->
7
+ ### 修复
8
+ - 子应用发布 wgt 或 zip 其中一种时,不再用历史版本回填另一种包链接,避免更新检查始终命中历史版本。
9
+
5
10
  ## 0.9.13 [2026-11-16]
6
11
  <!-- generated-by: specs -->
7
12
  ### 优化
package/lib/apis/index.js CHANGED
@@ -190,6 +190,15 @@ async function publishVersion(params) {
190
190
  fallbackFullUrl = '';
191
191
  fallbackResUrl = '';
192
192
  }
193
+ // 子应用允许 wgt/zip 只发一个,禁止用历史版本补齐另一包,
194
+ // 否则新版本链接会指向历史版本文件,客户端更新检查会一直命中历史版本。
195
+ if (publishType == 3) {
196
+ fallbackFullUrl = '';
197
+ fallbackResUrl = '';
198
+ }
199
+ if (publishType == 3 && !fullUrl && !resUrl) {
200
+ throw new Error('子应用发布未上传 wgt 或 zip 文件');
201
+ }
193
202
  await postVersion({
194
203
  id: versionId,
195
204
  fullPackageUrl: fullUrl || fallbackFullUrl,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gmcb/cli",
3
- "version": "0.9.13",
3
+ "version": "0.9.14",
4
4
  "description": "工茂草本前端命令行工具",
5
5
  "author": "yinjiazeng@163.com",
6
6
  "license": "UNLICENSED",