@alevnyacow/nzmt 0.0.16 → 0.0.18

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 -4
  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
 
@@ -242,9 +242,9 @@ if (command === 'store') {
242
242
  // barrel
243
243
 
244
244
  fs.writeFileSync(path.resolve(folder, 'index.ts'), [
245
- `export * from './${entityName}.store.ts`,
246
- `export * from './${entityName}.store.prisma.ts`,
247
- `export * from './${entityName}.store.ram.ts`
245
+ `export * from './${entityName}.store.ts'`,
246
+ `export * from './${entityName}.store.prisma.ts'`,
247
+ `export * from './${entityName}.store.ram.ts'`
248
248
  ].join('\n'))
249
249
  }
250
250
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alevnyacow/nzmt",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "description": "Next Zod Modules Toolkit",
5
5
  "type": "module",
6
6
  "exports": {