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.
Files changed (2) hide show
  1. package/dist/cli.mjs +7 -2
  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("Use-case skipped (may already exist)");
1174
+ } catch (e) {
1175
+ genSpinner.stop(`Use-case skipped: ${e}`);
1171
1176
  }
1172
1177
  }
1173
1178
  clack.outro(chalk4.green("Done!"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wlmaker",
3
- "version": "1.2.6",
3
+ "version": "1.2.8",
4
4
  "description": "Create Flutter BLoCs with Freezed sealed classes from the terminal",
5
5
  "keywords": [
6
6
  "flutter",