@cloudbase/lowcode-builder 1.9.8 → 1.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.
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.generateSystemPackageDependencies = exports.generateLibDependencies = exports.generatePackageDependencies = void 0;
4
4
  const cals_1 = require("@cloudbase/cals");
5
- const CLOUDBASE_VERSION = '2.8.16-beta.0';
5
+ const CLOUDBASE_VERSION = '2.8.21-beta.0';
6
6
  const BASE_DEPS = {
7
7
  'miniprogram-gesture': '^1.0.6',
8
8
  mobx: '^5',
@@ -13,11 +13,11 @@ const BASE_DEPS = {
13
13
  * 注意锁版本
14
14
  */
15
15
  const CLOUDBASE_DEPS = {
16
- '@cloudbase/weda-client': '1.1.11',
17
- '@cloudbase/weda-cloud-sdk': '1.0.87',
16
+ '@cloudbase/weda-client': '1.1.12',
17
+ '@cloudbase/weda-cloud-sdk': '1.0.89',
18
18
  };
19
19
  const COMPONENT_DEPS = {
20
- '@cloudbase/lowcode-render': '^1.1.4',
20
+ '@cloudbase/lowcode-render': '^1.1.6',
21
21
  };
22
22
  const SYS_CLOUDBASE_DEPS = {
23
23
  '@cloudbase/adapter-wx_mp': '^1.0.3',
@@ -112,7 +112,7 @@ async function generateWedaRootCommonFile({ buildContext, buildTypeList, localWe
112
112
  }
113
113
  exports.generateWedaRootCommonFile = generateWedaRootCommonFile;
114
114
  async function generateWxMp({ buildContext: _buildContext, weapps, calses, deployOptions, options, buildTypeList, ignoreInstall = false, cdnEndpoints = {}, mpConfig = {}, }) {
115
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
115
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
116
116
  const operationLabel = em('Wexin MiniProgram Generated');
117
117
  console.time(operationLabel);
118
118
  console.log(`Generating ${em('Wexin MiniProgram')} to ${_buildContext.projDir}`);
@@ -244,6 +244,7 @@ async function generateWxMp({ buildContext: _buildContext, weapps, calses, deplo
244
244
  : undefined,
245
245
  defaultLoginType: buildContext.__defaultLoginType__,
246
246
  pureAnonymousLogin: !!((_k = (_j = calses[0]) === null || _j === void 0 ? void 0 : _j.extra) === null || _k === void 0 ? void 0 : _k.pureAnonymousLogin),
247
+ publicPage: JSON.stringify((_m = (_l = calses[0]) === null || _l === void 0 ? void 0 : _l.extra) === null || _m === void 0 ? void 0 : _m.publicPage) || 'undefined',
247
248
  },
248
249
  'datasources/datasource-profiles.js.tpl': {
249
250
  datasourceProfiles: (0, util_3.JsonToStringWithVariableName)([], { EOL: false }),
@@ -312,8 +313,8 @@ async function generateWxMp({ buildContext: _buildContext, weapps, calses, deplo
312
313
  projectConfigJson.setting = {
313
314
  ...projectConfigJson.setting,
314
315
  ...projConfig.setting,
315
- packNpmRelationList: ((_l = projConfig.setting) === null || _l === void 0 ? void 0 : _l.packNpmRelationList) || ((_m = projectConfigJson.setting) === null || _m === void 0 ? void 0 : _m.packNpmRelationList)
316
- ? (0, mp_config_1.mergePackNpmRelationList)(projConfig.setting.packNpmRelationList, (_o = projectConfigJson.setting) === null || _o === void 0 ? void 0 : _o.packNpmRelationList)
316
+ packNpmRelationList: ((_o = projConfig.setting) === null || _o === void 0 ? void 0 : _o.packNpmRelationList) || ((_p = projectConfigJson.setting) === null || _p === void 0 ? void 0 : _p.packNpmRelationList)
317
+ ? (0, mp_config_1.mergePackNpmRelationList)(projConfig.setting.packNpmRelationList, (_q = projectConfigJson.setting) === null || _q === void 0 ? void 0 : _q.packNpmRelationList)
317
318
  : undefined,
318
319
  };
319
320
  const wedaRoot = path_1.default.posix.join('./', projectConfigJson.miniprogramRoot || '/', projectConfigJson.wedaRoot || '');
@@ -333,7 +334,7 @@ async function generateWxMp({ buildContext: _buildContext, weapps, calses, deplo
333
334
  }
334
335
  const appJsonPath = path_1.default.join(miniprogramRoot, 'app.json');
335
336
  const appJson = await fs.readJson(appJsonPath);
336
- appJson.subpackages = (0, mp_config_1.mergeSubPackages)(((_q = (_p = appJson.subpackages) === null || _p === void 0 ? void 0 : _p.filter) === null || _q === void 0 ? void 0 : _q.call(_p, (item) => item.name !== 'wd-sys-module' && item.name !== 'wd-sys-materials')) || [], appConfig.subpackages);
337
+ appJson.subpackages = (0, mp_config_1.mergeSubPackages)(((_s = (_r = appJson.subpackages) === null || _r === void 0 ? void 0 : _r.filter) === null || _s === void 0 ? void 0 : _s.call(_r, (item) => item.name !== 'wd-sys-module' && item.name !== 'wd-sys-materials')) || [], appConfig.subpackages);
337
338
  await (0, generateFiles_1.writeFile)(appJsonPath, JSON.stringify(appJson, undefined, 2));
338
339
  }
339
340
  else {