@dcloudio/uni-cli-shared 3.0.0-alpha-3050320220729001 → 3.0.0-alpha-3050420220804001
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 +12 -0
- package/dist/vite/plugins/copy.js +1 -1
- package/package.json +3 -3
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/uni-cli-shared",
|
|
3
|
-
"version": "3.0.0-alpha-
|
|
3
|
+
"version": "3.0.0-alpha-3050420220804001",
|
|
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-
|
|
26
|
-
"@dcloudio/uni-shared": "3.0.0-alpha-
|
|
25
|
+
"@dcloudio/uni-i18n": "3.0.0-alpha-3050420220804001",
|
|
26
|
+
"@dcloudio/uni-shared": "3.0.0-alpha-3050420220804001",
|
|
27
27
|
"@intlify/core-base": "9.1.9",
|
|
28
28
|
"@intlify/shared": "9.1.9",
|
|
29
29
|
"@intlify/vue-devtools": "9.1.9",
|