@dcloudio/uni-cli-shared 3.0.0-alpha-3070120230207001 → 3.0.0-alpha-3070120230208001
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/utils.js +6 -6
- package/package.json +4 -4
package/dist/utils.js
CHANGED
|
@@ -32,14 +32,14 @@ function normalizeIdentifier(str) {
|
|
|
32
32
|
}
|
|
33
33
|
exports.normalizeIdentifier = normalizeIdentifier;
|
|
34
34
|
function normalizePagePath(pagePath, platform) {
|
|
35
|
-
const
|
|
36
|
-
let
|
|
35
|
+
const absolutePagePath = path_1.default.resolve(process.env.UNI_INPUT_DIR, pagePath);
|
|
36
|
+
let extensions = constants_1.PAGE_EXTNAME;
|
|
37
37
|
if (platform === 'app') {
|
|
38
|
-
|
|
38
|
+
extensions = constants_1.PAGE_EXTNAME_APP;
|
|
39
39
|
}
|
|
40
|
-
for (let i = 0; i <
|
|
41
|
-
const extname =
|
|
42
|
-
if (fs_1.default.existsSync(
|
|
40
|
+
for (let i = 0; i < extensions.length; i++) {
|
|
41
|
+
const extname = extensions[i];
|
|
42
|
+
if (fs_1.default.existsSync(absolutePagePath + extname)) {
|
|
43
43
|
return pagePath + extname;
|
|
44
44
|
}
|
|
45
45
|
}
|
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-3070120230208001",
|
|
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.20.5",
|
|
26
26
|
"@babel/parser": "^7.20.5",
|
|
27
27
|
"@babel/types": "^7.20.7",
|
|
28
|
-
"@dcloudio/uni-i18n": "3.0.0-alpha-
|
|
29
|
-
"@dcloudio/uni-shared": "3.0.0-alpha-
|
|
28
|
+
"@dcloudio/uni-i18n": "3.0.0-alpha-3070120230208001",
|
|
29
|
+
"@dcloudio/uni-shared": "3.0.0-alpha-3070120230208001",
|
|
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-3070120230208001",
|
|
68
68
|
"@types/babel__core": "^7.1.19",
|
|
69
69
|
"@types/debug": "^4.1.7",
|
|
70
70
|
"@types/estree": "^0.0.51",
|