@boopkit/cli 0.1.12 → 0.1.13
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/lib/capability.js +6 -0
- package/package.json +1 -1
package/dist/lib/capability.js
CHANGED
|
@@ -140,6 +140,12 @@ function listCapabilities() {
|
|
|
140
140
|
if (cap.name.startsWith('_'))
|
|
141
141
|
continue;
|
|
142
142
|
seen.add(cap.name);
|
|
143
|
+
// Also track the package short name (e.g. "users" from "@boopkit/cap-users")
|
|
144
|
+
// so the node_modules scan doesn't re-add it under its directory name
|
|
145
|
+
if (cap.package) {
|
|
146
|
+
const shortName = cap.package.replace(/^@boopkit\/cap-/, '');
|
|
147
|
+
seen.add(shortName);
|
|
148
|
+
}
|
|
143
149
|
capabilities.push(cap);
|
|
144
150
|
}
|
|
145
151
|
// Secondary: scan node_modules for capabilities not in the catalog
|