@dcloudio/uni-cli-shared 3.0.0-alpha-3050320220727002 → 3.0.0-alpha-3050420220803001

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) {
@@ -35,7 +35,7 @@ function uniViteCopyPlugin({ targets, verbose, }) {
35
35
  // 生产模式下,延迟 close,否则会影响 chokidar 初始化的 add 等事件
36
36
  setTimeout(() => {
37
37
  watcher.close().then(() => resolve(void 0));
38
- }, 1000);
38
+ }, 2000);
39
39
  }
40
40
  else {
41
41
  resolve(void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-cli-shared",
3
- "version": "3.0.0-alpha-3050320220727002",
3
+ "version": "3.0.0-alpha-3050420220803001",
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-3050320220727002",
26
- "@dcloudio/uni-shared": "3.0.0-alpha-3050320220727002",
25
+ "@dcloudio/uni-i18n": "3.0.0-alpha-3050420220803001",
26
+ "@dcloudio/uni-shared": "3.0.0-alpha-3050420220803001",
27
27
  "@intlify/core-base": "9.1.9",
28
28
  "@intlify/shared": "9.1.9",
29
29
  "@intlify/vue-devtools": "9.1.9",