@cloudbase/cli 2.6.10 → 2.6.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.
@@ -127,38 +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
- const target = 'main';
131
- const functionsConfigFile = path_1.default.resolve(targetDir, options.functionsConfigFile || 'cloudbase-functions.json');
132
- let multiFunctionsConfig = null;
133
- if (yield fs_extra_1.default.exists(functionsConfigFile)) {
134
- try {
135
- multiFunctionsConfig = (0, functions_framework_1.loadFunctionsConfig)(functionsConfigFile);
136
- }
137
- catch (err) {
138
- log.error(`多函数定义配置文件 ${functionsConfigFile} 配置文件有误,请检查`);
139
- log.error(err);
140
- return;
141
- }
142
- }
143
- const loadResult = yield (0, functions_framework_1.loadFunctions)({
144
- target,
145
- sourceLocation: targetDir,
146
- multiFunctionsConfig
147
- });
148
- if (Array.isArray(loadResult)) {
149
- for (const loadItem of loadResult) {
150
- if (!(loadItem === null || loadItem === void 0 ? void 0 : loadItem.userFunction)) {
151
- log.error(`验证加载函数 ${loadItem === null || loadItem === void 0 ? void 0 : loadItem.name} 失败: "${loadItem === null || loadItem === void 0 ? void 0 : loadItem.reason}"`);
152
- return;
153
- }
154
- }
155
- }
156
- else {
157
- if (!(loadResult === null || loadResult === void 0 ? void 0 : loadResult.userFunction)) {
158
- log.error(`验证加载云函数失败: ${loadResult === null || loadResult === void 0 ? void 0 : loadResult.reason}`);
159
- return;
160
- }
161
- }
162
130
  if (!envId) {
163
131
  const envConfig = (0, camelcase_keys_1.default)(yield iac_core_1.utils.loadEnv(targetDir));
164
132
  if (envConfig.envId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/cli",
3
- "version": "2.6.10",
3
+ "version": "2.6.11",
4
4
  "description": "cli tool for cloudbase",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {