@alevnyacow/nzmt 0.0.17 → 0.0.19

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 +2 -2
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -84,7 +84,7 @@ function camelizeVariants(str) {
84
84
  var [lowerCase, upperCase] = camelizeVariants(entityName)
85
85
 
86
86
  if (command === 'store') {
87
- const folder = config ? path.resolve(process.cwd(), config?.paths?.stores, entityName) : path.resolve(process.cwd(), entityName);
87
+ const folder = config?.paths?.stores ? path.resolve(process.cwd(), config?.paths?.stores, entityName) : path.resolve(process.cwd(), entityName);
88
88
 
89
89
  fs.mkdirSync(folder, { recursive: true })
90
90
 
@@ -237,7 +237,7 @@ if (command === 'store') {
237
237
  "\t\t}",
238
238
  "\t});",
239
239
  "};"
240
- ].join('\n'))
240
+ ].filter(x => typeof x === 'string').join('\n'))
241
241
 
242
242
  // barrel
243
243
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alevnyacow/nzmt",
3
- "version": "0.0.17",
3
+ "version": "0.0.19",
4
4
  "description": "Next Zod Modules Toolkit",
5
5
  "type": "module",
6
6
  "exports": {