@dcloudio/uni-cli-shared 3.0.0-alpha-4020520240726003 → 3.0.0-alpha-4020520240731001

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/resolve.js CHANGED
@@ -30,9 +30,11 @@ function relativeFile(from, to) {
30
30
  }
31
31
  exports.relativeFile = relativeFile;
32
32
  exports.resolveMainPathOnce = (0, uni_shared_1.once)((inputDir) => {
33
- const mainUTSPath = path_1.default.resolve(inputDir, 'main.uts');
34
- if (fs_1.default.existsSync(mainUTSPath)) {
35
- return (0, utils_1.normalizePath)(mainUTSPath);
33
+ if (process.env.UNI_APP_X === 'true') {
34
+ const mainUTSPath = path_1.default.resolve(inputDir, 'main.uts');
35
+ if (fs_1.default.existsSync(mainUTSPath)) {
36
+ return (0, utils_1.normalizePath)(mainUTSPath);
37
+ }
36
38
  }
37
39
  const mainTsPath = path_1.default.resolve(inputDir, 'main.ts');
38
40
  if (fs_1.default.existsSync(mainTsPath)) {
@@ -81,7 +81,14 @@ function uniUTSAppUniModulesPlugin(options = {}) {
81
81
  // 获取 provider 扩展(编译所有uni)
82
82
  const plugins = (0, uni_modules_1.getUniExtApiPlugins)().filter((provider) => !utsPlugins.has(provider.plugin));
83
83
  for (const plugin of plugins) {
84
- const result = await compilePlugin(path_1.default.resolve(inputDir, 'uni_modules', plugin.plugin));
84
+ const pluginDir = path_1.default.resolve(inputDir, 'uni_modules', plugin.plugin);
85
+ // 如果是 app-js 环境
86
+ if (process.env.UNI_APP_X_UVUE_SCRIPT_ENGINE === 'js') {
87
+ if (fs_1.default.existsSync(path_1.default.resolve(pluginDir, 'utssdk', 'app-js', 'index.uts'))) {
88
+ continue;
89
+ }
90
+ }
91
+ const result = await compilePlugin(pluginDir);
85
92
  if (result) {
86
93
  // 时机不对,不能addWatch
87
94
  // result.deps.forEach((dep) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-cli-shared",
3
- "version": "3.0.0-alpha-4020520240726003",
3
+ "version": "3.0.0-alpha-4020520240731001",
4
4
  "description": "@dcloudio/uni-cli-shared",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -26,8 +26,8 @@
26
26
  "@babel/core": "^7.23.3",
27
27
  "@babel/parser": "^7.23.9",
28
28
  "@babel/types": "^7.20.7",
29
- "@dcloudio/uni-i18n": "3.0.0-alpha-4020520240726003",
30
- "@dcloudio/uni-shared": "3.0.0-alpha-4020520240726003",
29
+ "@dcloudio/uni-i18n": "3.0.0-alpha-4020520240731001",
30
+ "@dcloudio/uni-shared": "3.0.0-alpha-4020520240731001",
31
31
  "@intlify/core-base": "9.1.9",
32
32
  "@intlify/shared": "9.1.9",
33
33
  "@intlify/vue-devtools": "9.1.9",
@@ -71,7 +71,7 @@
71
71
  },
72
72
  "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
73
73
  "devDependencies": {
74
- "@dcloudio/uni-uts-v1": "3.0.0-alpha-4020520240726003",
74
+ "@dcloudio/uni-uts-v1": "3.0.0-alpha-4020520240731001",
75
75
  "@types/adm-zip": "^0.5.5",
76
76
  "@types/babel__code-frame": "^7.0.6",
77
77
  "@types/babel__core": "^7.1.19",