@cloudbase/cli 2.0.7-alpha.0 → 2.0.9-alpha.0

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.
@@ -76,6 +76,9 @@ let LowCodeCreateComps = class LowCodeCreateComps extends common_1.Command {
76
76
  }
77
77
  execute(params, log) {
78
78
  return __awaiter(this, void 0, void 0, function* () {
79
+ if (process.env.CLOUDBASE_LOWCODE_CLOUDAPI_URL === undefined) {
80
+ process.env.CLOUDBASE_LOWCODE_CLOUDAPI_URL = 'https://lcap.cloud.tencent.com/api/v1/cliapi';
81
+ }
79
82
  const res = yield cloudService.request('ListUserCompositeGroups');
80
83
  const comps = res === null || res === void 0 ? void 0 : res.data;
81
84
  if (!(comps === null || comps === void 0 ? void 0 : comps.count)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/cli",
3
- "version": "2.0.7-alpha.0",
3
+ "version": "2.0.9-alpha.0",
4
4
  "description": "cli tool for cloudbase",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -29,7 +29,7 @@
29
29
  "author": "cwuyiqing@gmail.com",
30
30
  "license": "ISC",
31
31
  "dependencies": {
32
- "@cloudbase/cloud-api": "^0.5.4",
32
+ "@cloudbase/cloud-api": "^0.5.5",
33
33
  "@cloudbase/framework-core": "^1.6.1",
34
34
  "@cloudbase/lowcode-cli": "alpha",
35
35
  "@cloudbase/manager-node": "4.0.0",
@@ -42,6 +42,10 @@ export class LowCodeCreateComps extends Command {
42
42
 
43
43
  @InjectParams()
44
44
  async execute(@ArgsParams() params, @Log() log?: Logger) {
45
+ if (process.env.CLOUDBASE_LOWCODE_CLOUDAPI_URL === undefined) {
46
+ // 没设置的时候才才设置,方便覆盖
47
+ process.env.CLOUDBASE_LOWCODE_CLOUDAPI_URL = 'https://lcap.cloud.tencent.com/api/v1/cliapi';
48
+ }
45
49
  const res = await cloudService.request('ListUserCompositeGroups')
46
50
  const comps = res?.data
47
51
  if (!comps?.count) {
@@ -65,7 +69,6 @@ export class LowCodeCreateComps extends Command {
65
69
  }
66
70
  }
67
71
 
68
- // TODO: 逻辑迁移到 lowcode-cli
69
72
  await bootstrap(compsName, log);
70
73
 
71
74
  }