nest-prisma_doc-gen 1.0.20 → 1.0.21

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.
@@ -17,8 +17,11 @@ export class DocGenModel {
17
17
  this.exports = [`export * from './types/${Helper.toKebab(this.name)}'`];
18
18
  const intaaa = `
19
19
  export namespace ${this.name} {
20
+ export const Dto = ${this.name}Dto;
20
21
  export type Dto = ${this.name}Dto;
22
+ export const Res = ${this.name}Res;
21
23
  export type Res = ${this.name}Res;
24
+ export const Id = ${this.name}Id;
22
25
  export type Id = ${this.name}Id;
23
26
  }
24
27
  `;
package/dist/file.js CHANGED
@@ -2,7 +2,6 @@ import { promises as fs } from "node:fs";
2
2
  import * as path from "node:path";
3
3
  import * as prettier from "prettier";
4
4
  const ROOT = process.cwd();
5
- console.log(ROOT);
6
5
  const OUT_DIR = path.join(ROOT, "src/types/docgen");
7
6
  export class DocGenFile {
8
7
  outDir;
package/dist/main.js CHANGED
@@ -67,7 +67,7 @@ export class DocGen {
67
67
  field.isRequired = true;
68
68
  const name = Helper.capitalizeFirstSafe(field.name);
69
69
  exportTypes.push(`
70
- export type ${name} = ${name}Dto
70
+ export const ${name} = ${name}Dto
71
71
  `);
72
72
  return `
73
73
  class ${name}Dto {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nest-prisma_doc-gen",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "Auto generates ApiProperties from schema.prisma",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",