@cloudbase/cli 2.2.0-alpha.9 → 2.2.0-beta.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.
- package/bin/tcb.js +4 -2
- package/lib/commands/lowcode/app.js +1 -1
- package/package.json +2 -2
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
|
-
|
|
61
|
-
|
|
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
|
// 注册命令
|
|
@@ -188,7 +188,7 @@ let LowCodeDeployApp = class LowCodeDeployApp extends common_1.Command {
|
|
|
188
188
|
projectPath: process.cwd(),
|
|
189
189
|
logger: log,
|
|
190
190
|
privateSettings
|
|
191
|
-
}, Object.assign(Object.assign({ credential }, restMergedOptions), { projectPath: src }));
|
|
191
|
+
}, Object.assign(Object.assign({ credential }, restMergedOptions), { projectPath: src || restMergedOptions.projectPath }));
|
|
192
192
|
});
|
|
193
193
|
}
|
|
194
194
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/cli",
|
|
3
|
-
"version": "2.2.0-
|
|
3
|
+
"version": "2.2.0-beta.0",
|
|
4
4
|
"description": "cli tool for cloudbase",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@cloudbase/cloud-api": "^0.5.5",
|
|
34
34
|
"@cloudbase/framework-core": "^1.9.6",
|
|
35
|
-
"@cloudbase/lowcode-cli": "0.
|
|
35
|
+
"@cloudbase/lowcode-cli": "^0.18.0",
|
|
36
36
|
"@cloudbase/manager-node": "4.0.1",
|
|
37
37
|
"@cloudbase/toolbox": "^0.7.3",
|
|
38
38
|
"@sentry/node": "^5.10.2",
|