@gmcb/cli 0.7.5 → 0.7.6

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.7.6](http://10.10.10.16/caoben/front-end/compare/@gmcb/cli@0.7.5...@gmcb/cli@0.7.6) (2026-07-09)
7
+
8
+ **Note:** Version bump only for package @gmcb/cli
9
+
10
+
11
+
12
+
13
+
6
14
  ## [0.7.5](http://10.10.10.16/caoben/front-end/compare/@gmcb/cli@0.7.4...@gmcb/cli@0.7.5) (2026-07-09)
7
15
 
8
16
  **Note:** Version bump only for package @gmcb/cli
@@ -42,8 +42,9 @@ async function publish(options) {
42
42
  const filePath = (0, path_1.join)(const_1.COMMAND_PATH, appCfg?.path ?? options.path);
43
43
  const destName = `${versionName}.${versionCode}.${ext}`;
44
44
  const path = `${remotePath}/${destName}`;
45
+ const remoteUrl = `https://${bucket}.cos.${region}.myqcloud.com${`/${path}`.replace(/\/+/g, '/')}`;
45
46
  await new Promise((res) => {
46
- const spinner = (0, ora_1.default)(`正在上传${path}...`).start();
47
+ const spinner = (0, ora_1.default)(`资源正在上传...`).start();
47
48
  cos.putObject({
48
49
  Bucket: bucket,
49
50
  Region: region,
@@ -52,16 +53,16 @@ async function publish(options) {
52
53
  }, (err) => {
53
54
  spinner.stop();
54
55
  if (err) {
55
- spinner.fail(`上传失败,${err.message}`);
56
+ spinner.fail(`资源上传失败,${err.message}`);
56
57
  process.exit(1);
57
58
  }
58
59
  else {
59
60
  res();
60
- spinner.succeed(`${path}上传成功`);
61
+ spinner.succeed(`资源路径:${remoteUrl}`);
61
62
  }
62
63
  });
63
64
  });
64
- remoteUrls.push(`https://${bucket}.cos.${region}.myqcloud.com${`/${path}`.replace(/\/+/g, '/')}`);
65
+ remoteUrls.push(remoteUrl);
65
66
  }
66
67
  const spinner = (0, ora_1.default)('正在提交...').start();
67
68
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gmcb/cli",
3
- "version": "0.7.5",
3
+ "version": "0.7.6",
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": "d7ef0dd4432c11c8278ceb03bc0ad7f58839913a"
62
+ "gitHead": "ddbee89228a142259af726e3d5408a69132a1980"
63
63
  }