@dudousxd/nestjs-codegen 0.2.1 → 0.3.0
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/CHANGELOG.md +30 -0
- package/dist/cli/main.cjs +1214 -1613
- package/dist/cli/main.cjs.map +1 -1
- package/dist/cli/main.js +1188 -1587
- package/dist/cli/main.js.map +1 -1
- package/dist/extension/index.cjs +12 -2
- package/dist/extension/index.cjs.map +1 -1
- package/dist/extension/index.d.cts +1 -1
- package/dist/extension/index.d.ts +1 -1
- package/dist/extension/index.js +10 -1
- package/dist/extension/index.js.map +1 -1
- package/dist/{index-BwIRjOQA.d.cts → index-oH5t7x4G.d.cts} +56 -41
- package/dist/{index-BwIRjOQA.d.ts → index-oH5t7x4G.d.ts} +56 -41
- package/dist/index.cjs +1003 -1457
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +32 -16
- package/dist/index.d.ts +32 -16
- package/dist/index.js +977 -1430
- package/dist/index.js.map +1 -1
- package/dist/nest/index.cjs +908 -1355
- package/dist/nest/index.cjs.map +1 -1
- package/dist/nest/index.d.cts +9 -2
- package/dist/nest/index.d.ts +9 -2
- package/dist/nest/index.js +893 -1340
- package/dist/nest/index.js.map +1 -1
- package/package.json +3 -2
package/dist/nest/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DynamicModule, OnApplicationBootstrap, OnModuleDestroy } from '@nestjs/common';
|
|
2
|
-
import { U as UserConfig } from '../index-
|
|
2
|
+
import { U as UserConfig } from '../index-oH5t7x4G.cjs';
|
|
3
3
|
import 'ts-morph';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -23,7 +23,14 @@ import 'ts-morph';
|
|
|
23
23
|
* export class AppModule {}
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
|
-
interface CodegenModuleOptions extends UserConfig {
|
|
26
|
+
interface CodegenModuleOptions extends Omit<UserConfig, 'validation'> {
|
|
27
|
+
/**
|
|
28
|
+
* Validation adapter for emitted `forms.ts` schemas. Required at runtime to emit
|
|
29
|
+
* forms — pass `zodAdapter` from `@dudousxd/nestjs-codegen-zod` (or the valibot/
|
|
30
|
+
* arktype adapter). Typed optional only so `forRoot()` stays terse; if omitted,
|
|
31
|
+
* the watcher logs and skips rather than crashing app boot.
|
|
32
|
+
*/
|
|
33
|
+
validation?: UserConfig['validation'];
|
|
27
34
|
/**
|
|
28
35
|
* Master switch for the boot-time watcher. When omitted, the watcher runs in every
|
|
29
36
|
* environment EXCEPT production (`process.env.NODE_ENV === 'production'`) — codegen is a
|
package/dist/nest/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DynamicModule, OnApplicationBootstrap, OnModuleDestroy } from '@nestjs/common';
|
|
2
|
-
import { U as UserConfig } from '../index-
|
|
2
|
+
import { U as UserConfig } from '../index-oH5t7x4G.js';
|
|
3
3
|
import 'ts-morph';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -23,7 +23,14 @@ import 'ts-morph';
|
|
|
23
23
|
* export class AppModule {}
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
|
-
interface CodegenModuleOptions extends UserConfig {
|
|
26
|
+
interface CodegenModuleOptions extends Omit<UserConfig, 'validation'> {
|
|
27
|
+
/**
|
|
28
|
+
* Validation adapter for emitted `forms.ts` schemas. Required at runtime to emit
|
|
29
|
+
* forms — pass `zodAdapter` from `@dudousxd/nestjs-codegen-zod` (or the valibot/
|
|
30
|
+
* arktype adapter). Typed optional only so `forRoot()` stays terse; if omitted,
|
|
31
|
+
* the watcher logs and skips rather than crashing app boot.
|
|
32
|
+
*/
|
|
33
|
+
validation?: UserConfig['validation'];
|
|
27
34
|
/**
|
|
28
35
|
* Master switch for the boot-time watcher. When omitted, the watcher runs in every
|
|
29
36
|
* environment EXCEPT production (`process.env.NODE_ENV === 'production'`) — codegen is a
|