@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.
- package/lib/builder/config/dependencies.js +2 -2
- package/lib/builder/mp/index.js +5 -1
- package/lib/builder/service/webpack.js +1 -1
- package/lib/builder.web.js +3 -3
- package/package.json +2 -2
- package/template/html/index.html.ejs +2 -2
- package/template/mp/packages/$wd_system/pages/login/index.js +8 -3
|
@@ -13,8 +13,8 @@ const BASE_DEPS = {
|
|
|
13
13
|
* 注意锁版本
|
|
14
14
|
*/
|
|
15
15
|
const CLOUDBASE_DEPS = {
|
|
16
|
-
'@cloudbase/weda-client': '1.1.
|
|
17
|
-
'@cloudbase/weda-cloud-sdk': '1.0.
|
|
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',
|
package/lib/builder/mp/index.js
CHANGED
|
@@ -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',
|
|
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);
|