@gmcb/cli 0.5.4 → 0.5.5

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.5](http://10.10.10.16/caoben/front-end/compare/@gmcb/cli@0.5.4...@gmcb/cli@0.5.5) (2026-06-30)
7
+
8
+ **Note:** Version bump only for package @gmcb/cli
9
+
10
+
11
+
12
+
13
+
6
14
  ## [0.5.4](http://10.10.10.16/caoben/front-end/compare/@gmcb/cli@0.5.3...@gmcb/cli@0.5.4) (2026-06-30)
7
15
 
8
16
  **Note:** Version bump only for package @gmcb/cli
package/README.md CHANGED
@@ -48,8 +48,9 @@ gmcb publish -p app --wgt -a
48
48
 
49
49
  ### 配置
50
50
 
51
- `uni.build.json` 中可配置 `pub` 和 `publish` 两个发布节:
51
+ `uni.build.json` 中可配置以下字段:
52
52
 
53
+ - `install`:安装依赖的命令,默认为 `npm install`,可配置为 `pnpm install`、`yarn` 等
53
54
  - `pub`:基础发布配置(brand、type、status、platform、path)
54
55
  - `publish`:魔方发布配置(brandName、brandId、channel、updateType、versionDesc、publishType、platform、path),配置后走魔方发布流程
55
56
 
@@ -86,6 +86,7 @@ export interface BaseConfig {
86
86
  }
87
87
  export interface Config extends BaseConfig {
88
88
  env?: string;
89
+ install?: string;
89
90
  app?: App;
90
91
  mp?: Mp;
91
92
  h5?: H5;
@@ -141,7 +141,7 @@ async function default_1(...args) {
141
141
  install = false;
142
142
  }
143
143
  if (install) {
144
- (0, utils_1.spawnSync)('npm install');
144
+ (0, utils_1.spawnSync)(config.install || 'npm install');
145
145
  }
146
146
  const cmds = await (0, build_1.default)(...args);
147
147
  const commands = cmds.slice(0, 3);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gmcb/cli",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
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": "8ca6aaab67e4018e3dc97383cb94b8db7ea2272a"
57
+ "gitHead": "d1d89a811379dc7049a3920276a2b8845b6c3fd2"
58
58
  }
package/schema.json CHANGED
@@ -6,6 +6,10 @@
6
6
  "type": ["boolean", "string"],
7
7
  "description": "是否在分支下打包,true表示在当前分支下打包,字符串表示仅在该分支下打包"
8
8
  },
9
+ "install": {
10
+ "type": "string",
11
+ "description": "安装依赖的命令,默认为 npm install,可配置为 pnpm install、yarn 等"
12
+ },
9
13
  "cli": {
10
14
  "type": "object",
11
15
  "description": "cli配置",