@dcloudio/uni-cli-shared 3.0.0-alpha-3070020230116001 → 3.0.0-alpha-3070020230201001

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/dist/hbx/env.js CHANGED
@@ -10,6 +10,11 @@ const uni_shared_1 = require("@dcloudio/uni-shared");
10
10
  const resolve_1 = require("../resolve");
11
11
  const utils_1 = require("../utils");
12
12
  exports.isInHBuilderX = (0, uni_shared_1.once)(() => {
13
+ // 自动化测试传入了 HX_APP_ROOT(其实就是UNI_HBUILDERX_PLUGINS)
14
+ if (process.env.HX_APP_ROOT) {
15
+ process.env.UNI_HBUILDERX_PLUGINS = process.env.HX_APP_ROOT;
16
+ return true;
17
+ }
13
18
  try {
14
19
  const { name } = require(path_1.default.resolve(process.cwd(), '../about/package.json'));
15
20
  if (name === 'about') {
@@ -62,12 +62,14 @@ function findChangedJsonFiles(supportGlobalUsingComponents = true) {
62
62
  // app.json mp-baidu 在 win 不支持相对路径。所有平台改用绝对路径
63
63
  if (filename !== 'app') {
64
64
  let usingComponents = newJson.usingComponents;
65
- const globalUsingComponents = appJsonCache?.usingComponents ?? {};
66
65
  // 如果小程序不支持 global 的 usingComponents
67
66
  if (!supportGlobalUsingComponents) {
68
- // appJsonCache 中读取全局的 usingComponents 并补充到子组件 usingComponents 中
67
+ // 从取全局的 usingComponents 并补充到子组件 usingComponents 中
68
+ const globalUsingComponents = appJsonCache?.usingComponents || {};
69
+ const globalComponents = findUsingComponents('app') || {};
69
70
  usingComponents = {
70
71
  ...globalUsingComponents,
72
+ ...globalComponents,
71
73
  ...newJson.usingComponents,
72
74
  };
73
75
  }
package/dist/uts.js CHANGED
@@ -125,7 +125,7 @@ function initUTSComponents(inputDir, platform) {
125
125
  }
126
126
  if (name) {
127
127
  const importDir = (0, utils_1.normalizePath)(is_uni_modules_utssdk ? path_1.default.dirname(dir) : dir);
128
- easycomsObj[`^${name}$`] = `\0${importDir}?uts-proxy`;
128
+ easycomsObj[`^${name}$`] = `${importDir}?uts-proxy`;
129
129
  }
130
130
  });
131
131
  }
package/lib/.DS_Store ADDED
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-cli-shared",
3
- "version": "3.0.0-alpha-3070020230116001",
3
+ "version": "3.0.0-alpha-3070020230201001",
4
4
  "description": "@dcloudio/uni-cli-shared",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,8 +25,8 @@
25
25
  "@babel/core": "^7.20.5",
26
26
  "@babel/parser": "^7.20.5",
27
27
  "@babel/types": "^7.20.7",
28
- "@dcloudio/uni-i18n": "3.0.0-alpha-3070020230116001",
29
- "@dcloudio/uni-shared": "3.0.0-alpha-3070020230116001",
28
+ "@dcloudio/uni-i18n": "3.0.0-alpha-3070020230201001",
29
+ "@dcloudio/uni-shared": "3.0.0-alpha-3070020230201001",
30
30
  "@intlify/core-base": "9.1.9",
31
31
  "@intlify/shared": "9.1.9",
32
32
  "@intlify/vue-devtools": "9.1.9",
@@ -64,7 +64,7 @@
64
64
  },
65
65
  "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
66
66
  "devDependencies": {
67
- "@dcloudio/uni-uts-v1": "3.0.0-alpha-3070020230116001",
67
+ "@dcloudio/uni-uts-v1": "3.0.0-alpha-3070020230201001",
68
68
  "@types/babel__core": "^7.1.19",
69
69
  "@types/debug": "^4.1.7",
70
70
  "@types/estree": "^0.0.51",