@cloudbase/cli 2.5.1-private.1 → 2.5.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.
@@ -166,7 +166,7 @@ let LowCodeBuildComps = class LowCodeBuildComps extends common_1.Command {
166
166
  return __awaiter(this, void 0, void 0, function* () {
167
167
  const config = ctx.config.lowcodeCustomComponents;
168
168
  if (config) {
169
- yield lowcodeCli.graceBuildComps(Object.assign(Object.assign({}, config), { context: config.context || process.cwd(), logger: log, privateSettings: (0, utils_1.getPrivateSettings)(ctx.config, this.options.cmd) }));
169
+ yield lowcodeCli.graceBuildComps(Object.assign(Object.assign({}, config), { context: config.context || process.cwd(), logger: log, privateSettings: (0, utils_1.getPrivateSettings)(ctx.config, this.options.cmd), envId: ctx.envId || ctx.config.envId }));
170
170
  return;
171
171
  }
172
172
  throw new error_1.CloudBaseError('请参考文档填写 cloudbaserc 配置: https://docs.cloudbase.net/lowcode/custom-components/config/config-comps');
@@ -218,7 +218,7 @@ let LowCodeDebugComps = class LowCodeDebugComps extends common_1.Command {
218
218
  if (config) {
219
219
  const cmdConfig = (0, utils_2.getCmdConfig)(ctx.config, this.options);
220
220
  const mergesOptions = (0, utils_2.getMergedOptions)(cmdConfig, options);
221
- yield lowcodeCli.graceDebugComps(Object.assign(Object.assign({}, config), { context: config.context || process.cwd(), debugPort: (mergesOptions === null || mergesOptions === void 0 ? void 0 : mergesOptions.debugPort) || 8388, logger: log, wxDevtoolPath: mergesOptions === null || mergesOptions === void 0 ? void 0 : mergesOptions.wxDevtoolPath, debugBaseUrl: (_a = privateSettings === null || privateSettings === void 0 ? void 0 : privateSettings.endpoints) === null || _a === void 0 ? void 0 : _a.editor }));
221
+ yield lowcodeCli.graceDebugComps(Object.assign(Object.assign({}, config), { context: config.context || process.cwd(), debugPort: (mergesOptions === null || mergesOptions === void 0 ? void 0 : mergesOptions.debugPort) || 8388, logger: log, wxDevtoolPath: mergesOptions === null || mergesOptions === void 0 ? void 0 : mergesOptions.wxDevtoolPath, debugBaseUrl: (_a = privateSettings === null || privateSettings === void 0 ? void 0 : privateSettings.endpoints) === null || _a === void 0 ? void 0 : _a.editor, envId: ctx.envId || ctx.config.envId }));
222
222
  return;
223
223
  }
224
224
  throw new error_1.CloudBaseError('请参考文档填写 cloudbaserc 配置: https://docs.cloudbase.net/lowcode/custom-components/config/config-comps');
@@ -265,7 +265,7 @@ let LowCodePublishComps = class LowCodePublishComps extends common_1.Command {
265
265
  const config = ctx.config.lowcodeCustomComponents;
266
266
  if (config) {
267
267
  const mergesOptions = (0, utils_2.getMergedOptions)((0, utils_2.getCmdConfig)(ctx.config, this.options), options);
268
- yield lowcodeCli.gracePublishComps(Object.assign(Object.assign({}, config), { context: config.context || process.cwd(), logger: log, privateSettings: (0, utils_1.getPrivateSettings)(ctx.config, this.options.cmd), isAdmin: Boolean(mergesOptions.admin) }));
268
+ yield lowcodeCli.gracePublishComps(Object.assign(Object.assign({}, config), { context: config.context || process.cwd(), logger: log, privateSettings: (0, utils_1.getPrivateSettings)(ctx.config, this.options.cmd), isAdmin: Boolean(mergesOptions.admin), envId: ctx.envId || ctx.config.envId }));
269
269
  log.success('组件库 - 已同步到云端,请到低码控制台发布该组件库!');
270
270
  return;
271
271
  }
@@ -331,7 +331,7 @@ let LowCodePublishVersionComps = class LowCodePublishVersionComps extends common
331
331
  if (!config) {
332
332
  throw new error_1.CloudBaseError('组件库 - 请添加组件库配置到cloudbaserc.json 以使用该命令');
333
333
  }
334
- const res = yield lowcodeCli.publishVersion(Object.assign(Object.assign({}, config), { context: config.context || process.cwd(), logger: log, isAdmin: options.admin, privateSettings: (0, utils_1.getPrivateSettings)(ctx.config, this.options.cmd) }), comment, tag);
334
+ const res = yield lowcodeCli.publishVersion(Object.assign(Object.assign({}, config), { context: config.context || process.cwd(), logger: log, isAdmin: options.admin, privateSettings: (0, utils_1.getPrivateSettings)(ctx.config, this.options.cmd), envId: ctx.envId || ctx.config.envId }), comment, tag);
335
335
  if (res.data.code === 200) {
336
336
  log.success('组件库 - 已发布新版本!');
337
337
  return;
@@ -18,5 +18,4 @@ __exportStar(require("./list"), exports);
18
18
  __exportStar(require("./version"), exports);
19
19
  __exportStar(require("./delete"), exports);
20
20
  __exportStar(require("./image"), exports);
21
- __exportStar(require("./standalonegateway"), exports);
22
21
  __exportStar(require("./service"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/cli",
3
- "version": "2.5.1-private.1",
3
+ "version": "2.5.2",
4
4
  "description": "cli tool for cloudbase",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -33,7 +33,7 @@
33
33
  "dependencies": {
34
34
  "@cloudbase/cloud-api": "^0.5.5",
35
35
  "@cloudbase/framework-core": "^1.9.7",
36
- "@cloudbase/lowcode-cli": "private",
36
+ "@cloudbase/lowcode-cli": "^0.22.0",
37
37
  "@cloudbase/manager-node": "4.2.8",
38
38
  "@cloudbase/toolbox": "^0.7.5",
39
39
  "@sentry/node": "^5.10.2",
@@ -2,5 +2,4 @@ export * from './list';
2
2
  export * from './version';
3
3
  export * from './delete';
4
4
  export * from './image';
5
- export * from './standalonegateway';
6
5
  export * from './service';