@gmcb/cli 0.5.2 → 0.5.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 CHANGED
@@ -3,6 +3,22 @@
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.4](http://10.10.10.16/caoben/front-end/compare/@gmcb/cli@0.5.3...@gmcb/cli@0.5.4) (2026-06-30)
7
+
8
+ **Note:** Version bump only for package @gmcb/cli
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.5.3](http://10.10.10.16/caoben/front-end/compare/@gmcb/cli@0.5.2...@gmcb/cli@0.5.3) (2026-06-30)
15
+
16
+ **Note:** Version bump only for package @gmcb/cli
17
+
18
+
19
+
20
+
21
+
6
22
  ## [0.5.2](http://10.10.10.16/caoben/front-end/compare/@gmcb/cli@0.6.0...@gmcb/cli@0.5.2) (2026-06-28)
7
23
 
8
24
  **Note:** Version bump only for package @gmcb/cli
@@ -74,10 +74,10 @@ async function getCommands(...args) {
74
74
  const currentName = (0, path_1.basename)(utils_1.COMMAND_PATH);
75
75
  const projectName = opts.project || currentName;
76
76
  if (opts.compiler === 'uni') {
77
- if (projectName === currentName &&
78
- utils_1.HAS_SRC &&
79
- (!opts.platform?.startsWith('app') ||
80
- (opts.platform === 'app' && (!opts.wgt || !opts.res || !opts.custom)))) {
77
+ if (!utils_1.HAS_SRC) {
78
+ opts.pack = true;
79
+ }
80
+ if (projectName === currentName && !opts.pack) {
81
81
  commands = [...commands, bin, 'build -p', opts.platform];
82
82
  }
83
83
  else {
package/lib/bin.js CHANGED
@@ -40,6 +40,7 @@ program
40
40
  .option(...commands_1.branch)
41
41
  .option(...commands_1.source)
42
42
  .option(...commands_1.custom)
43
+ .option(...commands_1.pack)
43
44
  .option(...commands_1.wgt)
44
45
  .option(...commands_1.res)
45
46
  .option(...commands_1.env)
@@ -65,6 +66,7 @@ program
65
66
  .option(...commands_1.compiler)
66
67
  .option(...commands_1.branch)
67
68
  .option(...commands_1.source)
69
+ .option(...commands_1.pack)
68
70
  .option(...commands_1.wgt)
69
71
  .option(...commands_1.res)
70
72
  .option(...commands_1.env)
@@ -18,6 +18,7 @@ export declare const mac: readonly ["--mac", "是否构建MacOS应用"];
18
18
  export declare const linux: readonly ["--linux", "是否构建Linux应用"];
19
19
  export declare const zip: readonly ["--zip", "是否构建桌面应用热更新资源"];
20
20
  export declare const custom: readonly ["--custom", "是否构建自定义基座"];
21
+ export declare const pack: readonly ["--pack", "是否使用hbuilderx构建应用"];
21
22
  export declare const wgt: readonly ["--wgt", "是否构建移动应用热更新资源"];
22
23
  export declare const res: readonly ["--res", "是否构建移动应用本地资源"];
23
24
  export declare const auto: readonly ["-a, --auto", "自动发布,跳过所有确认"];
@@ -37,6 +38,7 @@ export interface Options {
37
38
  env?: string;
38
39
  wgt?: boolean;
39
40
  custom?: boolean;
41
+ pack?: boolean;
40
42
  res?: boolean;
41
43
  auto?: boolean;
42
44
  ignore?: string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.templateRepo = exports.skillRepo = exports.cosSecretkey = exports.cosSecretid = exports.alipayCli = exports.weixinCli = exports.hbuilderxCli = exports.auto = exports.res = exports.wgt = exports.custom = exports.zip = exports.linux = exports.mac = exports.win = exports.link = exports.path = exports.name = exports.clean = exports.ignore = exports.dest = exports.source = exports.branch = exports.env = exports.compiler = exports.project = exports.platform = exports.template = exports.version = void 0;
3
+ exports.templateRepo = exports.skillRepo = exports.cosSecretkey = exports.cosSecretid = exports.alipayCli = exports.weixinCli = exports.hbuilderxCli = exports.auto = exports.res = exports.wgt = exports.pack = exports.custom = exports.zip = exports.linux = exports.mac = exports.win = exports.link = exports.path = exports.name = exports.clean = exports.ignore = exports.dest = exports.source = exports.branch = exports.env = exports.compiler = exports.project = exports.platform = exports.template = exports.version = void 0;
4
4
  exports.version = ['-v, --version', '输出版本号'];
5
5
  exports.template = ['-t, --template <template-name>', '模版仓库名称'];
6
6
  exports.platform = ['-p, --platform <platform-name>', '编译平台,默认h5', 'h5'];
@@ -20,6 +20,7 @@ exports.mac = ['--mac', '是否构建MacOS应用'];
20
20
  exports.linux = ['--linux', '是否构建Linux应用'];
21
21
  exports.zip = ['--zip', '是否构建桌面应用热更新资源'];
22
22
  exports.custom = ['--custom', '是否构建自定义基座'];
23
+ exports.pack = ['--pack', '是否使用hbuilderx构建应用'];
23
24
  exports.wgt = ['--wgt', '是否构建移动应用热更新资源'];
24
25
  exports.res = ['--res', '是否构建移动应用本地资源'];
25
26
  exports.auto = ['-a, --auto', '自动发布,跳过所有确认'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gmcb/cli",
3
- "version": "0.5.2",
3
+ "version": "0.5.4",
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": "d8ca81d3d5d1f59be3026fe591bad4a8fd2a6b0e"
57
+ "gitHead": "8ca6aaab67e4018e3dc97383cb94b8db7ea2272a"
58
58
  }