@cabloy/module-glob 5.0.14 → 5.0.15
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/index.js +5 -10
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -108,12 +108,7 @@ async function __loadPackage(context, modules) {
|
|
|
108
108
|
module.package = JSON.parse(modulesPackage[i].toString());
|
|
109
109
|
const moduleNode = getPackageModuleNode(context.options.projectMode);
|
|
110
110
|
const capabilities = module.package[moduleNode]?.capabilities;
|
|
111
|
-
|
|
112
|
-
module.info.icon = capabilities?.icon;
|
|
113
|
-
if (capabilities?.monkey)
|
|
114
|
-
module.info.monkey = capabilities?.monkey;
|
|
115
|
-
if (capabilities?.sync)
|
|
116
|
-
module.info.sync = capabilities?.sync;
|
|
111
|
+
module.info.capabilities = capabilities;
|
|
117
112
|
}
|
|
118
113
|
}
|
|
119
114
|
function __orderModules(context, modules) {
|
|
@@ -228,16 +223,16 @@ function __parseModules(context, projectPath) {
|
|
|
228
223
|
function __logModules(context, log) {
|
|
229
224
|
for (const module of context.modulesArray) {
|
|
230
225
|
const relativeName = module.info.relativeName;
|
|
231
|
-
if (module.info.monkey) {
|
|
226
|
+
if (module.info.capabilities?.monkey) {
|
|
232
227
|
context.modulesMonkey[relativeName] = module;
|
|
233
228
|
}
|
|
234
|
-
if (module.info.sync) {
|
|
229
|
+
if (module.info.capabilities?.sync) {
|
|
235
230
|
context.modulesSync[relativeName] = module;
|
|
236
231
|
}
|
|
237
|
-
if (module.info.icon) {
|
|
232
|
+
if (module.info.capabilities?.icon) {
|
|
238
233
|
context.modulesIcon[relativeName] = module;
|
|
239
234
|
}
|
|
240
|
-
if (module.info.
|
|
235
|
+
if (module.info.node_modules) {
|
|
241
236
|
context.modulesGlobal[relativeName] = module;
|
|
242
237
|
}
|
|
243
238
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cabloy/module-glob",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.15",
|
|
4
4
|
"description": "cabloy module-glob",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"boxen": "^4.2.0",
|
|
33
33
|
"egg-born-utils": "^1.2.0",
|
|
34
|
-
"@cabloy/module-info": "^1.0.
|
|
34
|
+
"@cabloy/module-info": "^1.0.19"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"lint": "eslint ."
|