@cloudbase/cli 2.6.0 → 2.6.2
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.
|
@@ -127,7 +127,6 @@ let RunfDeployCommand = class RunfDeployCommand extends common_1.Command {
|
|
|
127
127
|
return __awaiter(this, void 0, void 0, function* () {
|
|
128
128
|
let { serviceName, source } = options;
|
|
129
129
|
const targetDir = path_1.default.resolve(source || process.cwd());
|
|
130
|
-
debugger;
|
|
131
130
|
const target = 'main';
|
|
132
131
|
const functionsConfigFile = path_1.default.resolve(targetDir, options.functionsConfigFile || 'cloudbase-functions.json');
|
|
133
132
|
let multiFunctionsConfig = null;
|
|
@@ -212,13 +211,17 @@ let RunfDeployCommand = class RunfDeployCommand extends common_1.Command {
|
|
|
212
211
|
function _runDeploy() {
|
|
213
212
|
return __awaiter(this, void 0, void 0, function* () {
|
|
214
213
|
try {
|
|
215
|
-
yield iac_core_1.IAC.FunctionV2.apply({
|
|
214
|
+
const res = yield iac_core_1.IAC.FunctionV2.apply({
|
|
216
215
|
cwd: targetDir,
|
|
217
216
|
envId: envId,
|
|
218
217
|
name: serviceName
|
|
219
218
|
}, function (message) {
|
|
220
219
|
trackCallback(message, log);
|
|
221
220
|
});
|
|
221
|
+
const { envId: _envId, name, resourceType: _resourceType } = res === null || res === void 0 ? void 0 : res.data;
|
|
222
|
+
trackCallback({
|
|
223
|
+
details: `请打开链接查看部署状态: https://tcb.cloud.tencent.com/dev?envId=${_envId}#/platform-run/service/detail?serverName=${name}&tabId=deploy&envId=${_envId}`
|
|
224
|
+
}, log);
|
|
222
225
|
}
|
|
223
226
|
catch (e) {
|
|
224
227
|
if ((e === null || e === void 0 ? void 0 : e.action) === 'UpdateCloudRunServer' && (e === null || e === void 0 ? void 0 : e.code) === 'ResourceInUse') {
|
|
@@ -426,7 +429,6 @@ class RunfRunCommand extends common_1.Command {
|
|
|
426
429
|
const watchFlag = ['--watch', '-w'];
|
|
427
430
|
const defaultIgnoreFiles = ['logs/*.*'];
|
|
428
431
|
if (watchFlag.some((flag) => args.includes(flag))) {
|
|
429
|
-
debugger;
|
|
430
432
|
const cmd = args.filter((arg) => !watchFlag.includes(arg)).join(' ');
|
|
431
433
|
(0, nodemon_1.default)({
|
|
432
434
|
script: '',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/cli",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.2",
|
|
4
4
|
"description": "cli tool for cloudbase",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@cloudbase/cloud-api": "^0.5.5",
|
|
35
35
|
"@cloudbase/framework-core": "^1.9.7",
|
|
36
36
|
"@cloudbase/functions-framework": "^1.5.0",
|
|
37
|
-
"@cloudbase/iac-core": "^0.0.3-alpha.
|
|
37
|
+
"@cloudbase/iac-core": "^0.0.3-alpha.4",
|
|
38
38
|
"@cloudbase/lowcode-cli": "^0.22.0",
|
|
39
39
|
"@cloudbase/manager-node": "4.2.8",
|
|
40
40
|
"@cloudbase/toolbox": "^0.7.5",
|