@dcloudio/uni-cli-shared 3.0.0-alpha-3060720221018005 → 3.0.0-alpha-3060720221018007
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.
|
@@ -8,7 +8,7 @@ function initCheckSystemWebview(manifestJson) {
|
|
|
8
8
|
manifestJson.plus['uni-app'].webView = plusWebView;
|
|
9
9
|
delete manifestJson.plus.webView;
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
else {
|
|
12
12
|
manifestJson.plus['uni-app'].webView = {
|
|
13
13
|
minUserAgentVersion: '49.0',
|
|
14
14
|
};
|
package/dist/resolve.js
CHANGED
|
@@ -176,11 +176,24 @@ function resolveUtsFile(dir, extensions = ['.uts', '.ts', '.js']) {
|
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
function resolveUTSCompiler() {
|
|
179
|
+
let compilerPath = '';
|
|
179
180
|
if ((0, env_1.isInHBuilderX)()) {
|
|
180
|
-
|
|
181
|
+
try {
|
|
182
|
+
compilerPath = require.resolve(path_1.default.resolve(process.env.UNI_HBUILDERX_PLUGINS, 'uniapp-uts-v1'));
|
|
183
|
+
}
|
|
184
|
+
catch (e) { }
|
|
185
|
+
}
|
|
186
|
+
if (!compilerPath) {
|
|
187
|
+
try {
|
|
188
|
+
compilerPath = require.resolve('@dcloudio/uni-uts-v1', {
|
|
189
|
+
paths: [process.env.UNI_CLI_CONTEXT],
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
catch (e) { }
|
|
193
|
+
}
|
|
194
|
+
if (!compilerPath) {
|
|
195
|
+
throw 'uts compiler is not found';
|
|
181
196
|
}
|
|
182
|
-
return require(
|
|
183
|
-
paths: [process.env.UNI_CLI_CONTEXT],
|
|
184
|
-
}));
|
|
197
|
+
return require(compilerPath);
|
|
185
198
|
}
|
|
186
199
|
exports.resolveUTSCompiler = resolveUTSCompiler;
|
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-3060720221018007",
|
|
4
4
|
"description": "@dcloudio/uni-cli-shared",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"@babel/core": "^7.18.13",
|
|
26
26
|
"@babel/parser": "^7.18.13",
|
|
27
27
|
"@babel/types": "^7.17.0",
|
|
28
|
-
"@dcloudio/uni-i18n": "3.0.0-alpha-
|
|
29
|
-
"@dcloudio/uni-shared": "3.0.0-alpha-
|
|
28
|
+
"@dcloudio/uni-i18n": "3.0.0-alpha-3060720221018007",
|
|
29
|
+
"@dcloudio/uni-shared": "3.0.0-alpha-3060720221018007",
|
|
30
30
|
"@intlify/core-base": "9.1.9",
|
|
31
31
|
"@intlify/shared": "9.1.9",
|
|
32
32
|
"@intlify/vue-devtools": "9.1.9",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
},
|
|
65
65
|
"gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@dcloudio/uni-uts-v1": "3.0.0-alpha-
|
|
67
|
+
"@dcloudio/uni-uts-v1": "3.0.0-alpha-3060720221018007",
|
|
68
68
|
"@types/babel__core": "^7.1.19",
|
|
69
69
|
"@types/debug": "^4.1.7",
|
|
70
70
|
"@types/estree": "^0.0.51",
|