@alevnyacow/nzmt 0.41.0 → 0.41.1

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/bin/cli.js +4 -3
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -1463,9 +1463,10 @@ function generateWidget(name, rootPath) {
1463
1463
 
1464
1464
  if (command === 'w') {
1465
1465
  let rootPath = undefined
1466
- const rootPathOption = (options ?? []).find(x => x.startsWith('root:'))
1467
- if (rootPathOption) {
1468
- rootPath = rootPathOption.split(':')[1]
1466
+ if (entityName.includes('/')) {
1467
+ const splitData = entityName.split('/')
1468
+ entityName = splitData.pop()
1469
+ rootPath = splitData.join('/')
1469
1470
  }
1470
1471
  generateWidget(entityName, rootPath)
1471
1472
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alevnyacow/nzmt",
3
- "version": "0.41.0",
3
+ "version": "0.41.1",
4
4
  "description": "Next Zod Modules Toolkit",
5
5
  "keywords": ["next", "full-stack", "server", "backend", "cli", "scaffolding", "zod", "rest", "contract programming", "contract-first", "react-query", "ddd", "domain-driven"],
6
6
  "repository": {