wlmaker 1.2.6 → 1.2.7
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/cli.mjs +5 -0
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -378,6 +378,11 @@ function widgetExists(componentsDir, tierPluralName, widgetName) {
|
|
|
378
378
|
if (fs5.existsSync(flatFile)) return true;
|
|
379
379
|
const subDir = path5.join(tierDir, widgetName);
|
|
380
380
|
if (fs5.existsSync(subDir)) return true;
|
|
381
|
+
const bareName = widgetName.startsWith("wl_") ? widgetName.slice(3) : widgetName;
|
|
382
|
+
if (bareName !== widgetName) {
|
|
383
|
+
const bareSubDir = path5.join(tierDir, bareName);
|
|
384
|
+
if (fs5.existsSync(bareSubDir)) return true;
|
|
385
|
+
}
|
|
381
386
|
return false;
|
|
382
387
|
}
|
|
383
388
|
|