@dcloudio/uni-cli-shared 3.0.0-alpha-4030320241117001 → 3.0.0-alpha-4030420241120001
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/easycom.js +6 -4
- package/package.json +4 -4
package/dist/easycom.js
CHANGED
|
@@ -191,11 +191,13 @@ function initAutoScanEasycom(dir, rootDir, extensions) {
|
|
|
191
191
|
return easycoms;
|
|
192
192
|
}
|
|
193
193
|
const is_uni_modules = path_1.default.basename(path_1.default.resolve(dir, '../..')) === 'uni_modules';
|
|
194
|
-
const
|
|
194
|
+
const is_easycom_encrypt_uni_modules = // uni_modules模式不需要此逻辑
|
|
195
195
|
process.env.UNI_COMPILE_TARGET !== 'uni_modules' &&
|
|
196
196
|
is_uni_modules &&
|
|
197
|
-
|
|
198
|
-
|
|
197
|
+
// 前端加密插件,不能包含utssdk目录
|
|
198
|
+
fs_1.default.existsSync(path_1.default.resolve(dir, '../encrypt')) &&
|
|
199
|
+
!fs_1.default.existsSync(path_1.default.resolve(dir, '../utssdk'));
|
|
200
|
+
const uni_modules_plugin_id = is_easycom_encrypt_uni_modules && path_1.default.basename(path_1.default.resolve(dir, '..'));
|
|
199
201
|
fs_1.default.readdirSync(dir).forEach((name) => {
|
|
200
202
|
const folder = path_1.default.resolve(dir, name);
|
|
201
203
|
if (!isDir(folder)) {
|
|
@@ -207,7 +209,7 @@ function initAutoScanEasycom(dir, rootDir, extensions) {
|
|
|
207
209
|
for (let i = 0; i < extensions.length; i++) {
|
|
208
210
|
const ext = extensions[i];
|
|
209
211
|
if (files.includes(name + ext)) {
|
|
210
|
-
easycoms[`^${name}$`] =
|
|
212
|
+
easycoms[`^${name}$`] = is_easycom_encrypt_uni_modules
|
|
211
213
|
? (0, utils_1.normalizePath)(path_1.default.join(rootDir, `uni_modules/${uni_modules_plugin_id}?${
|
|
212
214
|
// android 走 proxy
|
|
213
215
|
process.env.UNI_APP_X === 'true' &&
|
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-4030420241120001",
|
|
4
4
|
"description": "@dcloudio/uni-cli-shared",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"@babel/core": "^7.23.3",
|
|
27
27
|
"@babel/parser": "^7.23.9",
|
|
28
28
|
"@babel/types": "^7.20.7",
|
|
29
|
-
"@dcloudio/uni-i18n": "3.0.0-alpha-
|
|
30
|
-
"@dcloudio/uni-shared": "3.0.0-alpha-
|
|
29
|
+
"@dcloudio/uni-i18n": "3.0.0-alpha-4030420241120001",
|
|
30
|
+
"@dcloudio/uni-shared": "3.0.0-alpha-4030420241120001",
|
|
31
31
|
"@intlify/core-base": "9.1.9",
|
|
32
32
|
"@intlify/shared": "9.1.9",
|
|
33
33
|
"@intlify/vue-devtools": "9.1.9",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
},
|
|
72
72
|
"gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@dcloudio/uni-uts-v1": "3.0.0-alpha-
|
|
74
|
+
"@dcloudio/uni-uts-v1": "3.0.0-alpha-4030420241120001",
|
|
75
75
|
"@types/adm-zip": "^0.5.5",
|
|
76
76
|
"@types/babel__code-frame": "^7.0.6",
|
|
77
77
|
"@types/babel__core": "^7.1.19",
|