wlmaker 1.2.6 → 1.2.8
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 +7 -2
- 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
|
|
|
@@ -1166,8 +1171,8 @@ async function widgetFlow() {
|
|
|
1166
1171
|
buildRunner: false
|
|
1167
1172
|
});
|
|
1168
1173
|
genSpinner.stop("Use-case created");
|
|
1169
|
-
} catch {
|
|
1170
|
-
genSpinner.stop(
|
|
1174
|
+
} catch (e) {
|
|
1175
|
+
genSpinner.stop(`Use-case skipped: ${e}`);
|
|
1171
1176
|
}
|
|
1172
1177
|
}
|
|
1173
1178
|
clack.outro(chalk4.green("Done!"));
|