@dcloudio/uni-cli-shared 3.0.0-alpha-3040220220310001 → 3.0.0-alpha-3040220220310002
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/json/mp/jsonFile.js +4 -4
- package/package.json +3 -3
package/dist/json/mp/jsonFile.js
CHANGED
|
@@ -122,12 +122,12 @@ exports.findMiniProgramUsingComponents = findMiniProgramUsingComponents;
|
|
|
122
122
|
function findMiniProgramUsingComponent(usingComponents, componentsDir) {
|
|
123
123
|
return Object.keys(usingComponents).reduce((res, name) => {
|
|
124
124
|
const path = usingComponents[name];
|
|
125
|
-
if (
|
|
126
|
-
res[name] = 'component';
|
|
127
|
-
}
|
|
128
|
-
else if (path.includes('plugin://')) {
|
|
125
|
+
if (path.includes('plugin://')) {
|
|
129
126
|
res[name] = 'plugin';
|
|
130
127
|
}
|
|
128
|
+
else if (componentsDir && path.includes(componentsDir + '/')) {
|
|
129
|
+
res[name] = 'component';
|
|
130
|
+
}
|
|
131
131
|
return res;
|
|
132
132
|
}, {});
|
|
133
133
|
}
|
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-3040220220310002",
|
|
4
4
|
"description": "@dcloudio/uni-cli-shared",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"@babel/core": "^7.17.2",
|
|
22
22
|
"@babel/parser": "^7.16.4",
|
|
23
23
|
"@babel/types": "^7.16.8",
|
|
24
|
-
"@dcloudio/uni-i18n": "3.0.0-alpha-
|
|
25
|
-
"@dcloudio/uni-shared": "3.0.0-alpha-
|
|
24
|
+
"@dcloudio/uni-i18n": "3.0.0-alpha-3040220220310002",
|
|
25
|
+
"@dcloudio/uni-shared": "3.0.0-alpha-3040220220310002",
|
|
26
26
|
"@rollup/pluginutils": "^4.1.2",
|
|
27
27
|
"@vue/compiler-core": "3.2.31",
|
|
28
28
|
"@vue/compiler-dom": "3.2.31",
|