@alevnyacow/nzmt 0.0.12 → 0.0.14

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.
package/bin/cli.js CHANGED
@@ -40,24 +40,26 @@ function loadConfig() {
40
40
 
41
41
  const config = loadConfig();
42
42
 
43
- if (!config && command === 'init-config') {
44
- const projectRoot = findProjectRoot()
45
- if (!projectRoot) {
46
- throw 'No package.json was found'
47
- }
48
-
49
- fs.writeFileSync(path.resolve(projectRoot, 'nzmt.config.json'), JSON.stringify({
50
- paths: {
51
- prismaImport: [
52
- "import { prisma } from '@/backend/infrastructure/prisma'",
53
- "import type { Prisma } from '@/backend/generated-prisma/client'",
54
- ],
55
- stores: './backend/stores',
56
- services: './backend/services',
57
- providers: './backend/providers',
58
- controllers: './backend/controllers'
43
+ if (command === 'init-config') {
44
+ if (!config) {
45
+ const projectRoot = findProjectRoot()
46
+ if (!projectRoot) {
47
+ throw 'No package.json was found'
59
48
  }
60
- }, null, '\t'))
49
+
50
+ fs.writeFileSync(path.resolve(projectRoot, 'nzmt.config.json'), JSON.stringify({
51
+ paths: {
52
+ prismaImport: [
53
+ "import { prisma } from '@/backend/infrastructure/prisma'",
54
+ "import type { Prisma } from '@/backend/generated-prisma/client'",
55
+ ],
56
+ stores: './backend/stores',
57
+ services: './backend/services',
58
+ providers: './backend/providers',
59
+ controllers: './backend/controllers'
60
+ }
61
+ }, null, '\t'))
62
+ }
61
63
 
62
64
  process.exit(0);
63
65
  }
package/dist/index.cjs CHANGED
@@ -33,9 +33,9 @@ var __webpack_require__ = {};
33
33
  var __webpack_exports__ = {};
34
34
  __webpack_require__.r(__webpack_exports__);
35
35
  __webpack_require__.d(__webpack_exports__, {
36
+ Controller: ()=>zod_controller_utils_namespaceObject,
36
37
  Store: ()=>store_namespaceObject,
37
- zodModuleMethodFactory: ()=>zodModuleMethodFactory,
38
- API: ()=>zod_controller_utils_namespaceObject
38
+ zodModuleMethodFactory: ()=>zodModuleMethodFactory
39
39
  });
40
40
  var zod_controller_utils_namespaceObject = {};
41
41
  __webpack_require__.r(zod_controller_utils_namespaceObject);
@@ -500,11 +500,11 @@ const InRAM = (schemas, options)=>{
500
500
  }
501
501
  return RAMStore;
502
502
  };
503
- exports.API = __webpack_exports__.API;
503
+ exports.Controller = __webpack_exports__.Controller;
504
504
  exports.Store = __webpack_exports__.Store;
505
505
  exports.zodModuleMethodFactory = __webpack_exports__.zodModuleMethodFactory;
506
506
  for(var __rspack_i in __webpack_exports__)if (-1 === [
507
- "API",
507
+ "Controller",
508
508
  "Store",
509
509
  "zodModuleMethodFactory"
510
510
  ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export { zodModuleMethodFactory } from './zod-module.utils';
2
- export * as API from './zod-controller.utils';
2
+ export * as Controller from './zod-controller.utils';
3
3
  export * as Store from './store';
package/dist/index.js CHANGED
@@ -461,4 +461,4 @@ const InRAM = (schemas, options)=>{
461
461
  }
462
462
  return RAMStore;
463
463
  };
464
- export { store_namespaceObject as Store, zodModuleMethodFactory, zod_controller_utils_namespaceObject as API };
464
+ export { store_namespaceObject as Store, zodModuleMethodFactory, zod_controller_utils_namespaceObject as Controller };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alevnyacow/nzmt",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
4
4
  "description": "Next Zod Modules Toolkit",
5
5
  "type": "module",
6
6
  "exports": {