@gmcb/cli 0.8.3 → 0.8.4
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 +4 -1
- package/lib/apis/index.d.ts +1 -0
- package/lib/apis/index.js +1 -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.4](http://10.10.10.16/caoben/front-end/compare/@gmcb/cli@0.8.3...@gmcb/cli@0.8.4) (2026-07-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [0.8.3](http://10.10.10.16/caoben/front-end/compare/@gmcb/cli@0.8.2...@gmcb/cli@0.8.3) (2026-07-15)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @gmcb/cli
|
package/lib/actions/build.js
CHANGED
|
@@ -273,10 +273,13 @@ async function fetchRemoteResources(opts) {
|
|
|
273
273
|
// 查询版本数据,更新 package.json
|
|
274
274
|
const appIdPkg = (0, fs_extra_1.readJsonSync)(utils_1.PACKAGE_PATH);
|
|
275
275
|
const appId = appIdPkg.appId;
|
|
276
|
-
const { versionName, versionCode } = await (0, apis_1.fetchLatestVersion)({
|
|
276
|
+
const { versionName, versionCode, updateMode } = await (0, apis_1.fetchLatestVersion)({
|
|
277
277
|
appId,
|
|
278
278
|
platform: config_1.CONFIG_DATA.publish?.platform,
|
|
279
279
|
});
|
|
280
|
+
if (updateMode) {
|
|
281
|
+
config_1.CONFIG_DATA.publish.updateMode = updateMode;
|
|
282
|
+
}
|
|
280
283
|
if (versionName && versionCode) {
|
|
281
284
|
let pkgContent = (0, fs_1.readFileSync)(utils_1.PACKAGE_PATH, 'utf-8');
|
|
282
285
|
pkgContent = pkgContent.replace(/"version"\s*:\s*"[^"]*"/, `"version": "${versionName}"`);
|
package/lib/apis/index.d.ts
CHANGED
package/lib/apis/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gmcb/cli",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4",
|
|
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": "7dc381685eea613e6abc5dc1c9cc8f7dd23b045b"
|
|
63
63
|
}
|