@dcloudio/uni-cli-shared 3.0.0-alpha-4050120250118001 → 3.0.0-alpha-4050220250208001

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.
@@ -232,11 +232,11 @@ function uniUTSAppUniModulesPlugin(options = {}) {
232
232
  await syncUniModuleFilesByCompiler(platform, uniXArkTSCompiler, pluginDir, createAppHarmonyUniModulesSyncFilePreprocessorOnce(isX));
233
233
  }
234
234
  if (!utsPlugins.has(pluginId)) {
235
+ utsPlugins.add(pluginId);
235
236
  if (uniXKotlinCompiler) {
236
237
  const platform = 'app-android';
237
238
  const indexFileName = resolveTscUniModuleIndexFileName(platform, pluginDir);
238
239
  if (indexFileName) {
239
- utsPlugins.add(pluginId);
240
240
  await uniXKotlinCompiler.addRootFile(indexFileName);
241
241
  }
242
242
  }
@@ -244,7 +244,6 @@ function uniUTSAppUniModulesPlugin(options = {}) {
244
244
  const platform = 'app-ios';
245
245
  const indexFileName = resolveTscUniModuleIndexFileName(platform, pluginDir);
246
246
  if (indexFileName) {
247
- utsPlugins.add(pluginId);
248
247
  await uniXSwiftCompiler.addRootFile(indexFileName);
249
248
  }
250
249
  }
@@ -252,7 +251,6 @@ function uniUTSAppUniModulesPlugin(options = {}) {
252
251
  const platform = 'app-harmony';
253
252
  const indexFileName = resolveTscUniModuleIndexFileName(platform, pluginDir);
254
253
  if (indexFileName) {
255
- utsPlugins.add(pluginId);
256
254
  await uniXArkTSCompiler.addRootFile(indexFileName);
257
255
  }
258
256
  }
@@ -368,9 +366,9 @@ function uniUTSAppUniModulesPlugin(options = {}) {
368
366
  continue;
369
367
  }
370
368
  }
371
- if (process.env.UNI_APP_X !== 'true' &&
372
- process.env.UNI_PLATFORM === 'app-harmony') {
369
+ if (process.env.UNI_PLATFORM === 'app-harmony') {
373
370
  // uniExtApiCompiler本身是为X项目准备的,但是在app-harmony项目中也会调用
371
+ // uni-app-x app-harmony暂不支持其他类型插件
374
372
  if (!fs_extra_1.default.existsSync(path_1.default.resolve(pluginDir, 'utssdk', 'app-harmony', 'index.uts'))) {
375
373
  continue;
376
374
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-cli-shared",
3
- "version": "3.0.0-alpha-4050120250118001",
3
+ "version": "3.0.0-alpha-4050220250208001",
4
4
  "description": "@dcloudio/uni-cli-shared",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -66,8 +66,8 @@
66
66
  "tapable": "^2.2.0",
67
67
  "unplugin-auto-import": "^0.18.2",
68
68
  "xregexp": "3.1.0",
69
- "@dcloudio/uni-i18n": "3.0.0-alpha-4050120250118001",
70
- "@dcloudio/uni-shared": "3.0.0-alpha-4050120250118001"
69
+ "@dcloudio/uni-i18n": "3.0.0-alpha-4050220250208001",
70
+ "@dcloudio/uni-shared": "3.0.0-alpha-4050220250208001"
71
71
  },
72
72
  "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
73
73
  "devDependencies": {
@@ -88,6 +88,6 @@
88
88
  "postcss": "^8.4.21",
89
89
  "unimport": "^3.11.1",
90
90
  "vue": "3.4.21",
91
- "@dcloudio/uni-uts-v1": "3.0.0-alpha-4050120250118001"
91
+ "@dcloudio/uni-uts-v1": "3.0.0-alpha-4050220250208001"
92
92
  }
93
93
  }