@cloudbase/lowcode-builder 1.9.5 → 1.9.6

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.15-beta.0';
5
+ const CLOUDBASE_VERSION = '2.8.16-beta.0';
6
6
  const BASE_DEPS = {
7
7
  'miniprogram-gesture': '^1.0.6',
8
8
  mobx: '^5',
@@ -3,7 +3,7 @@ import { IBuildContext, IMpCommonBuildContext } from './BuildContext';
3
3
  import NameMangler from '@cloudbase/lowcode-generator/lib/generator/util/name-mangler';
4
4
  import { IUsedComps } from '../types/common';
5
5
  export declare function normalizeCompositeDependienciesForBuild(lib: any): any;
6
- export declare type TInstallMaterialsType = 'lib' | 'inline';
6
+ export type TInstallMaterialsType = 'lib' | 'inline';
7
7
  export declare function installMaterials(ctx: IMpCommonBuildContext, outDir: string, usedMeta?: {
8
8
  component: IUsedComps;
9
9
  action: IUsedComps;
@@ -201,7 +201,7 @@ async function downloadDependencies(targetDir, srcZipUrl, useBash = false) {
201
201
  const tag = `bash ${srcZipUrl}`;
202
202
  console.time(tag);
203
203
  await fs_extra_1.default.ensureDir(targetDir);
204
- await spawnPromise(`wget -qO- ${srcZipUrl} | tar xvz -C ${targetDir}`, [], {
204
+ await spawnPromise(`temp_dir=$(mktemp -d) && wget -O "$temp_dir/file.zip" "${srcZipUrl}" && unzip "$temp_dir/file.zip" -d ${targetDir} && rm -rf "$temp_dir"`, [], {
205
205
  cwd: process.cwd(),
206
206
  stdio: undefined,
207
207
  });
@@ -1,6 +1,6 @@
1
1
  export { BuildType, GenerateMpType, WebpackModeType, WebpackBuildCallBack, IPackageJson, buildAsWebByBuildType, buildAsAdminPortalByBuildType, buildAsXPageByBuildType, IAppUsedComp, IUsedComps, ISyncProp, IComponentInputProps, IFileCodeMap, } from '@cloudbase/lowcode-generator/lib/generator/types/common';
2
2
  import { IComponentMeta, ICompositedComponent } from '@cloudbase/lowcode-generator/lib/weapps-core';
3
- export declare type IComponentsInfoMap = {
3
+ export type IComponentsInfoMap = {
4
4
  [componentSourceKey: string]: ({
5
5
  meta: IComponentMeta;
6
6
  } & {
@@ -1,7 +1,7 @@
1
1
  import { IComponentInputProps, IComponentsInfoMap, IPackageJson } from '../types/common';
2
2
  import { IMaterialItem, IWeAppComponentInstance, IWeAppCode } from '@cloudbase/lowcode-generator/lib/weapps-core';
3
3
  export { getMetaInfoBySourceKey, isArray, isPlainObject, deepDeal, simpleDeepClone, getFileNameByUrl, } from '@cloudbase/lowcode-generator/lib/generator/util/common';
4
- declare type PromiseResult<T> = Promise<[null, T] | [Error, null]>;
4
+ type PromiseResult<T> = Promise<[null, T] | [Error, null]>;
5
5
  export declare function promiseWrapper<T>(p: Promise<T>): PromiseResult<T>;
6
6
  export declare function getCurrentPackageJson(): {
7
7
  name: any;