@cloudbase/cli 2.2.0-beta.1 → 2.2.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/.vscode/settings.json +6 -0
- package/bin/tcb.js +2 -2
- package/lib/commands/common.js +2 -2
- package/package.json +2 -2
package/bin/tcb.js
CHANGED
|
@@ -53,8 +53,8 @@ console.log(chalk.gray(`CloudBase Framework ${frameworkPkg.version}`))
|
|
|
53
53
|
|
|
54
54
|
const yargsParsedResult = yargsParser(process.argv.slice(2));
|
|
55
55
|
const config = await getCloudBaseConfig(yargsParsedResult.configFile);
|
|
56
|
-
const
|
|
57
|
-
if (
|
|
56
|
+
const privateSettings = getPrivateSettings(config);
|
|
57
|
+
if (privateSettings) {
|
|
58
58
|
console.log(chalk.gray(`检测到私有化配置`))
|
|
59
59
|
if(privateSettings.endpoints && privateSettings.endpoints.cliApi){
|
|
60
60
|
// 初始化 lowcode 服务cliapi入口
|
package/lib/commands/common.js
CHANGED
|
@@ -55,11 +55,11 @@ function ICommand(options = defaultCmdDecoratorOpts) {
|
|
|
55
55
|
}
|
|
56
56
|
exports.ICommand = ICommand;
|
|
57
57
|
function registerCommands() {
|
|
58
|
-
var _a;
|
|
58
|
+
var _a, _b;
|
|
59
59
|
return __awaiter(this, void 0, void 0, function* () {
|
|
60
60
|
const args = (0, yargs_parser_1.default)(process.argv.slice(2));
|
|
61
61
|
const config = yield (0, utils_1.getCloudBaseConfig)(args.configFile);
|
|
62
|
-
const isPrivate = (0, utils_1.getPrivateSettings)(config, ((_a = args === null || args === void 0 ? void 0 : args._) === null || _a === void 0 ? void 0 : _a[0]) ||
|
|
62
|
+
const isPrivate = (0, utils_1.getPrivateSettings)(config, (_b = (_a = args === null || args === void 0 ? void 0 : args._) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.toString());
|
|
63
63
|
registrableCommands.forEach(({ Command, decoratorOptions }) => {
|
|
64
64
|
if (isPrivate) {
|
|
65
65
|
if (decoratorOptions.supportPrivate) {
|
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",
|
|
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.18.
|
|
35
|
+
"@cloudbase/lowcode-cli": "^0.18.1",
|
|
36
36
|
"@cloudbase/manager-node": "4.0.1",
|
|
37
37
|
"@cloudbase/toolbox": "^0.7.4",
|
|
38
38
|
"@sentry/node": "^5.10.2",
|