@dcloudio/uni-cli-shared 3.0.0-alpha-4040120241211001 → 3.0.0-alpha-4040320241223001
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/uts.js +6 -1
- package/package.json +4 -4
package/dist/uts.js
CHANGED
|
@@ -200,9 +200,14 @@ function initUTSComponents(inputDir, platform) {
|
|
|
200
200
|
? path_1.default.basename(path_1.default.dirname(dir))
|
|
201
201
|
: path_1.default.basename(dir);
|
|
202
202
|
if (is_uni_modules_utssdk || is_ussdk) {
|
|
203
|
+
// dir 是 uni_modules/test-plugin/utssdk 或者 utssdk/test-plugin
|
|
204
|
+
// 需要分平台解析,不能直接解析 utssdk 目录下的文件,因为 utssdk 目录下可能存在多个平台的文件
|
|
205
|
+
const cwd = isApp
|
|
206
|
+
? dir
|
|
207
|
+
: path_1.default.join(dir, platform === 'h5' ? 'web' : platform);
|
|
203
208
|
fast_glob_1.default
|
|
204
209
|
.sync('**/*.vue', {
|
|
205
|
-
cwd
|
|
210
|
+
cwd,
|
|
206
211
|
absolute: true,
|
|
207
212
|
})
|
|
208
213
|
.forEach((file) => {
|
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-4040320241223001",
|
|
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-
|
|
70
|
-
"@dcloudio/uni-shared": "3.0.0-alpha-
|
|
69
|
+
"@dcloudio/uni-i18n": "3.0.0-alpha-4040320241223001",
|
|
70
|
+
"@dcloudio/uni-shared": "3.0.0-alpha-4040320241223001"
|
|
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-
|
|
91
|
+
"@dcloudio/uni-uts-v1": "3.0.0-alpha-4040320241223001"
|
|
92
92
|
}
|
|
93
93
|
}
|