@cloudbase/lowcode-builder 1.10.11 → 1.10.12-private.1.3.0-1

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.
@@ -13,8 +13,8 @@ const BASE_DEPS = {
13
13
  * 注意锁版本
14
14
  */
15
15
  const CLOUDBASE_DEPS = {
16
- '@cloudbase/weda-client': '1.1.27',
17
- '@cloudbase/weda-cloud-sdk': '1.0.96',
16
+ '@cloudbase/weda-client': '1.1.28',
17
+ '@cloudbase/weda-cloud-sdk': '1.0.100',
18
18
  };
19
19
  const COMPONENT_DEPS = {
20
20
  '@cloudbase/lowcode-render': '^1.1.10',
@@ -667,7 +667,11 @@ async function generateFramework(ctx, { cals, weapp: appData }, outDir, options)
667
667
  allCodeModules.push({
668
668
  id: p.id,
669
669
  pageNameVar: (0, lowcode_generator_1.normalizePageId)(p.id),
670
- lowCodes: p.lowCodes || [],
670
+ lowCodes: Object.values((p.lowCodes || []).reduce((map, item) => {
671
+ const key = `${item.type}/${item.name}`;
672
+ map[key] = item;
673
+ return map;
674
+ }, {})),
671
675
  });
672
676
  });
673
677
  fileData['app/handlers.js'] = {
@@ -280,7 +280,7 @@ async function installDependencies(targetDir, options = {}) {
280
280
  // TODO: install 失败 应该终止进程
281
281
  if (yarnExists && (options === null || options === void 0 ? void 0 : options.runtime) !== types_1.RUNTIME.CI) {
282
282
  const addPackage = packageName ? ['add', packageName] : [];
283
- installprocess = cross_spawn_1.default.sync('yarn', [...addPackage, registry], installProcessOptions);
283
+ installprocess = cross_spawn_1.default.sync('yarn', addPackage.concat(process.env.DRONE ? ['--prefer-offline'] : []).concat([registry]), installProcessOptions);
284
284
  }
285
285
  else {
286
286
  installprocess = cross_spawn_1.default.sync('npm', ['install', packageName, ...npmOptions], installProcessOptions);