@cloudbase/lowcode-builder 1.8.103 → 1.8.104

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/types.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export declare enum DEPLOY_MODE {
2
2
  PREVIEW = "preview",
3
- UPLOAD = "upload"
3
+ UPLOAD = "upload",
4
+ DYNAMIC = "dynamic"
4
5
  }
5
6
  export declare enum RUNTIME {
6
7
  CI = "CI",
package/lib/types.js CHANGED
@@ -19,6 +19,7 @@ var DEPLOY_MODE;
19
19
  (function (DEPLOY_MODE) {
20
20
  DEPLOY_MODE["PREVIEW"] = "preview";
21
21
  DEPLOY_MODE["UPLOAD"] = "upload";
22
+ DEPLOY_MODE["DYNAMIC"] = "dynamic";
22
23
  })(DEPLOY_MODE = exports.DEPLOY_MODE || (exports.DEPLOY_MODE = {}));
23
24
  var RUNTIME;
24
25
  (function (RUNTIME) {
@@ -1,2 +1,5 @@
1
1
  export declare function postprocessProjectConfig(projectJsonPath: any, data: any): void;
2
- export declare function postprocessDeployExtraJson(projectPath: any, deployOptions: any): void;
2
+ export declare function postprocessDeployExtraJson(projectPath: any, deployOptions: {
3
+ targetMpAppId?: string;
4
+ mpAppId?: string;
5
+ }): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/lowcode-builder",
3
- "version": "1.8.103",
3
+ "version": "1.8.104",
4
4
  "description": "云开发 Tencent CloudBase Framework Low Code Plugin,将低码配置生成完整项目并一键部署云开发资源。",
5
5
  "author": "yhsunshining@gmail.com",
6
6
  "homepage": "https://github.com/TencentCloudBase/cloudbase-framework#readme",
@@ -48,7 +48,7 @@
48
48
  "@babel/core": "7.21.4",
49
49
  "@babel/preset-env": "7.21.4",
50
50
  "@cloudbase/cals": "^1.1.1",
51
- "@cloudbase/lowcode-generator": "^1.8.32",
51
+ "@cloudbase/lowcode-generator": "^1.8.33",
52
52
  "axios": "^0.21.0",
53
53
  "browserfs": "^1.4.3",
54
54
  "browserify-zlib": "^0.2.0",
@@ -89,6 +89,7 @@ function createGlboalApi() {
89
89
  appConfig: {
90
90
  staticResourceDomain: config.domain,
91
91
  privatelink: cloudConfig.privatelink,
92
+ envVersion: cloudConfig.isProd ? 'production' : 'preview',
92
93
  ...(<%= appConfig %>)
93
94
  },
94
95
  });
@@ -7,7 +7,7 @@ import config from '../common/config'
7
7
  */
8
8
  const CLOUD_CONFIG = {
9
9
  /** 当前是否处于正式发布模式 */
10
- isProd: <%= isProd %>,
10
+ isProd: <%= deployMode === 'dynamic' ? 'wx.getAccountInfoSync()?.miniProgram?.envVersion === "release" || wx.getAccountInfoSync()?.miniProgram?.envVersion === "trial"': isProd %>,
11
11
  /** 低码应用ID */
12
12
  appID: '<%= appID %>',
13
13
  /** 云开发环境ID */
@@ -6,7 +6,7 @@
6
6
  "@cloudbase/js-sdk": "2.5.42-beta.0",<%
7
7
  } %>
8
8
  "@cloudbase/oauth": "0.1.1-alpha.6",
9
- "@cloudbase/weda-client": "1.0.33",
9
+ "@cloudbase/weda-client": "1.0.34",
10
10
  "@cloudbase/weda-cloud-sdk": "1.0.61",
11
11
  "mobx": "^5.15.4",
12
12
  "lodash.get": "^4.4.2",