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.
Files changed (2) hide show
  1. package/dist/cli.mjs +5 -0
  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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wlmaker",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "description": "Create Flutter BLoCs with Freezed sealed classes from the terminal",
5
5
  "keywords": [
6
6
  "flutter",