@cloudbase/cli 2.2.0-alpha.10 → 2.2.0-alpha.11

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.
Files changed (2) hide show
  1. package/bin/tcb.js +4 -2
  2. package/package.json +1 -1
package/bin/tcb.js CHANGED
@@ -57,8 +57,10 @@ const privateSettings = getPrivateSettings(config, yargsParsedResult._?.[0])
57
57
 
58
58
  if (privateSettings) {
59
59
  console.log(chalk.gray(`检测到私有化配置`))
60
- // 初始化 lowcode 服务cliapi入口
61
- process.env.CLOUDBASE_LOWCODE_CLOUDAPI_URL = privateSettings.endpoints.cliApi;
60
+ if(privateSettings.endpoints && privateSettings.endpoints.cliApi){
61
+ // 初始化 lowcode 服务cliapi入口
62
+ process.env.CLOUDBASE_LOWCODE_CLOUDAPI_URL = privateSettings.endpoints.cliApi;
63
+ }
62
64
 
63
65
  }
64
66
  // 注册命令
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/cli",
3
- "version": "2.2.0-alpha.10",
3
+ "version": "2.2.0-alpha.11",
4
4
  "description": "cli tool for cloudbase",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {