@cloudbase/cli 2.9.10-beta.0 → 2.9.10
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.
|
@@ -532,6 +532,11 @@ let CloudRunDeployCommand = class CloudRunDeployCommand extends common_1.Command
|
|
|
532
532
|
flags: '--force',
|
|
533
533
|
desc: (0, i18n_1.t)('强制部署,跳过所有确认提示'),
|
|
534
534
|
defaultValue: false
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
flags: '--installDependency <installDependency>',
|
|
538
|
+
desc: '在线安装依赖',
|
|
539
|
+
defaultValue: true
|
|
535
540
|
}
|
|
536
541
|
],
|
|
537
542
|
requiredEnvId: false,
|
|
@@ -542,7 +547,7 @@ let CloudRunDeployCommand = class CloudRunDeployCommand extends common_1.Command
|
|
|
542
547
|
execute(ctx, envId, log, options) {
|
|
543
548
|
var _a, _b;
|
|
544
549
|
return __awaiter(this, void 0, void 0, function* () {
|
|
545
|
-
let { serviceName, source, force, port, createAgent } = options;
|
|
550
|
+
let { serviceName, source, force, port, createAgent, installDependency = true } = options;
|
|
546
551
|
const targetDir = path_1.default.resolve(source || process.cwd());
|
|
547
552
|
if (!envId) {
|
|
548
553
|
const envConfig = (0, camelcase_keys_1.default)(yield iac_core_1.utils.loadEnv(targetDir));
|
|
@@ -660,7 +665,7 @@ let CloudRunDeployCommand = class CloudRunDeployCommand extends common_1.Command
|
|
|
660
665
|
yield cloudrunService.deploy({
|
|
661
666
|
serverName: serviceName,
|
|
662
667
|
targetPath: targetDir,
|
|
663
|
-
serverConfig: Object.assign({}, (port ? { Port: Number(port) } : {}))
|
|
668
|
+
serverConfig: Object.assign(Object.assign({}, (port ? { Port: Number(port) } : {})), { InstallDependency: installDependency !== 'false' })
|
|
664
669
|
});
|
|
665
670
|
utils_2.trackCallback === null || utils_2.trackCallback === void 0 ? void 0 : (0, utils_2.trackCallback)({
|
|
666
671
|
details: (0, i18n_1.t)('提交{{serverType}} {{serviceName}} 已完成!', { serverType: ResourceTitle[serverType], serviceName }),
|
|
@@ -719,6 +724,7 @@ let CloudRunDeployCommand = class CloudRunDeployCommand extends common_1.Command
|
|
|
719
724
|
details: `${e.message}`,
|
|
720
725
|
originalError: e
|
|
721
726
|
}, log);
|
|
727
|
+
throw e;
|
|
722
728
|
}
|
|
723
729
|
}
|
|
724
730
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var _a, _b;
|
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
4
|
exports.DEFAULT_CONFIGS = exports.CONFIGS = void 0;
|
|
4
5
|
const i18n_1 = require("../../i18n");
|
|
@@ -6,14 +7,14 @@ exports.CONFIGS = {
|
|
|
6
7
|
isIntl: {
|
|
7
8
|
key: 'isIntl',
|
|
8
9
|
type: 'boolean',
|
|
9
|
-
value:
|
|
10
|
+
value: ((_a = process.env.TCB_IS_INTL) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'true',
|
|
10
11
|
description: (0, i18n_1.t)('是否使用国际站'),
|
|
11
12
|
envKey: 'TCB_IS_INTL'
|
|
12
13
|
},
|
|
13
14
|
lang: {
|
|
14
15
|
key: 'lang',
|
|
15
16
|
type: 'string',
|
|
16
|
-
value: 'zh',
|
|
17
|
+
value: process.env.TCB_LANG || ((_b = process.env.LANG) === null || _b === void 0 ? void 0 : _b.startsWith('zh')) ? 'zh' : 'en',
|
|
17
18
|
description: (0, i18n_1.t)('语言,可用值:zh(中文), en(English)'),
|
|
18
19
|
envKey: 'TCB_LANG'
|
|
19
20
|
}
|
package/lib/utils/store/db.js
CHANGED
|
@@ -55,10 +55,11 @@ class LocalStore {
|
|
|
55
55
|
return db;
|
|
56
56
|
}
|
|
57
57
|
get(key) {
|
|
58
|
+
var _a;
|
|
58
59
|
return __awaiter(this, void 0, void 0, function* () {
|
|
59
60
|
const defaultValue = this.defaults[key];
|
|
60
61
|
const db = yield this.getDB();
|
|
61
|
-
return db.get(key).value()
|
|
62
|
+
return (_a = db.get(key).value()) !== null && _a !== void 0 ? _a : defaultValue;
|
|
62
63
|
});
|
|
63
64
|
}
|
|
64
65
|
set(key, value) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/cli",
|
|
3
|
-
"version": "2.9.10
|
|
3
|
+
"version": "2.9.10",
|
|
4
4
|
"description": "cli tool for cloudbase",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@cloudbase/functions-framework": "1.16.0",
|
|
56
56
|
"@cloudbase/iac-core": "0.0.3-alpha.11",
|
|
57
57
|
"@cloudbase/lowcode-cli": "^0.22.2",
|
|
58
|
-
"@cloudbase/manager-node": "4.6.
|
|
58
|
+
"@cloudbase/manager-node": "4.6.5",
|
|
59
59
|
"@cloudbase/toolbox": "^0.7.9",
|
|
60
60
|
"@dotenvx/dotenvx": "^1.48.3",
|
|
61
61
|
"@musistudio/claude-code-router": "1.0.36",
|