@dcloudio/uni-cli-shared 3.0.0-alpha-3050320220727001 → 3.0.0-alpha-3050320220729002

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
@@ -22,6 +22,18 @@ function resolveWithSymlinks(id, basedir) {
22
22
  extensions: constants_1.extensions,
23
23
  // necessary to work with pnpm
24
24
  preserveSymlinks: true,
25
+ pathFilter(pkg, filepath, relativePath) {
26
+ if (pkg.dcloudext && pkg.dcloudext.type === 'native-uts') {
27
+ if (process.env.UNI_APP_PLATFORM === 'app-android' ||
28
+ process.env.UNI_APP_PLATFORM === 'app-ios') {
29
+ const file = process.env.UNI_APP_PLATFORM + '/index.uts';
30
+ if (fs_1.default.existsSync(path_1.default.join(filepath.replace(relativePath, ''), file))) {
31
+ return file;
32
+ }
33
+ }
34
+ }
35
+ return relativePath;
36
+ },
25
37
  });
26
38
  }
27
39
  function relativeFile(from, to) {
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-3050320220727001",
3
+ "version": "3.0.0-alpha-3050320220729002",
4
4
  "description": "@dcloudio/uni-cli-shared",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,8 +22,8 @@
22
22
  "@babel/core": "^7.17.9",
23
23
  "@babel/parser": "^7.17.9",
24
24
  "@babel/types": "^7.17.0",
25
- "@dcloudio/uni-i18n": "3.0.0-alpha-3050320220727001",
26
- "@dcloudio/uni-shared": "3.0.0-alpha-3050320220727001",
25
+ "@dcloudio/uni-i18n": "3.0.0-alpha-3050320220729002",
26
+ "@dcloudio/uni-shared": "3.0.0-alpha-3050320220729002",
27
27
  "@intlify/core-base": "9.1.9",
28
28
  "@intlify/shared": "9.1.9",
29
29
  "@intlify/vue-devtools": "9.1.9",