@gmcb/cli 0.5.0 → 0.5.1

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
@@ -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.5.1](http://10.10.10.16/caoben/front-end/compare/@gmcb/cli@0.5.0...@gmcb/cli@0.5.1) (2026-06-22)
7
+
8
+ **Note:** Version bump only for package @gmcb/cli
9
+
10
+
11
+
12
+
13
+
6
14
  # [0.5.0](http://10.10.10.16/caoben/front-end/compare/@gmcb/cli@0.4.7...@gmcb/cli@0.5.0) (2026-06-21)
7
15
 
8
16
 
package/README.md CHANGED
@@ -27,11 +27,11 @@ npm i @gmcb/cli -g
27
27
 
28
28
  - `{build.*}` 取自已合并的 `uni.build.json` 配置(扁平化键),例如 `{build.h5.windows.appid}`
29
29
  - `{manifest.*}` 取自项目根目录的 `manifest.json`(扁平化键),例如 `{manifest.appid}`
30
- - `{package.*}` 取自项目根目录的 `package.json`(扁平化键),例如 `{package.appid}`
30
+ - `{package.*}` 取自项目根目录的 `package.json`(扁平化键),例如 `{package.appId}`
31
31
 
32
32
  示例:
33
33
 
34
34
  ```bash
35
- gmcb copy -s ./dist/build/h5 -d ../electron/out/renderer/{package.appid}/
35
+ gmcb copy -s ./dist/build/h5 -d ../electron/out/renderer/{package.appId}/
36
36
  gmcb copy -s ./dist/build/app -d ../android/app/src/main/assets/apps/{manifest.appid}/www/
37
37
  ```
@@ -40,8 +40,8 @@ function getLocalConfig() {
40
40
  config = (0, fs_extra_1.readJsonSync)(utils_1.LOCAL_CONFIG_PATH, { throws: false }) || {};
41
41
  }
42
42
  const pkg = (0, fs_1.existsSync)(utils_1.PACKAGE_PATH) ? ((0, fs_extra_1.readJsonSync)(utils_1.PACKAGE_PATH, { throws: false }) || {}) : {};
43
- const appid = pkg.appid;
44
- if (appid) {
43
+ const appId = pkg.appId;
44
+ if (appId) {
45
45
  if (!config.app)
46
46
  config.app = {};
47
47
  if (!config.app.android)
@@ -56,11 +56,11 @@ function getLocalConfig() {
56
56
  config.h5.windows = {};
57
57
  if (!config.h5.macos)
58
58
  config.h5.macos = {};
59
- config.app.android.packagename ??= appid;
60
- config.app.ios.bundle ??= appid;
61
- config.app.harmony.packagename ??= appid;
62
- config.h5.windows.appid ??= appid;
63
- config.h5.macos.appid ??= appid;
59
+ config.app.android.packagename ??= appId;
60
+ config.app.ios.bundle ??= appId;
61
+ config.app.harmony.packagename ??= appId;
62
+ config.h5.windows.appid ??= appId;
63
+ config.h5.macos.appid ??= appId;
64
64
  }
65
65
  return config;
66
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gmcb/cli",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "工茂草本前端命令行工具",
5
5
  "author": "yinjiazeng@163.com",
6
6
  "license": "MIT",
@@ -54,5 +54,5 @@
54
54
  "@types/rimraf": "^4.0.5",
55
55
  "@types/user-home": "^2.0.2"
56
56
  },
57
- "gitHead": "157b2a8fd65346813e9995b40212b8568e2197e1"
57
+ "gitHead": "c93585816c460324890ae3816b6bba85d3ec0581"
58
58
  }