@dudousxd/nestjs-codegen 0.21.1 → 0.22.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.
@@ -1,6 +1,6 @@
1
1
  import * as _nestjs_common from '@nestjs/common';
2
2
  import { DynamicModule, OnApplicationBootstrap, OnModuleDestroy, ExecutionContext } from '@nestjs/common';
3
- import { U as UserConfig } from '../index-Dyf4ttwU.cjs';
3
+ import { U as UserConfig } from '../index-BsptKWwz.cjs';
4
4
  import 'ts-morph';
5
5
 
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  import * as _nestjs_common from '@nestjs/common';
2
2
  import { DynamicModule, OnApplicationBootstrap, OnModuleDestroy, ExecutionContext } from '@nestjs/common';
3
- import { U as UserConfig } from '../index-Dyf4ttwU.js';
3
+ import { U as UserConfig } from '../index-BsptKWwz.js';
4
4
  import 'ts-morph';
5
5
 
6
6
  /**
@@ -3083,6 +3083,7 @@ function mergeExclusive(target, incoming, {
3083
3083
  }
3084
3084
  function createExtensionContext(config, getRoutes, trackedInputs) {
3085
3085
  let project;
3086
+ let tsconfigProject;
3086
3087
  return {
3087
3088
  cwd: config.codegen.cwd,
3088
3089
  outDir: config.codegen.outDir,
@@ -3107,6 +3108,14 @@ function createExtensionContext(config, getRoutes, trackedInputs) {
3107
3108
  });
3108
3109
  }
3109
3110
  return project;
3111
+ },
3112
+ tsconfigProject() {
3113
+ if (!tsconfigProject) {
3114
+ tsconfigProject = createDiscoveryProject(
3115
+ resolveTsconfigPath(config.codegen.cwd, config.app?.tsconfig ?? void 0)
3116
+ );
3117
+ }
3118
+ return tsconfigProject;
3110
3119
  }
3111
3120
  };
3112
3121
  }
@@ -5001,7 +5010,7 @@ async function watch(config, onChange, options = {}) {
5001
5010
  }
5002
5011
 
5003
5012
  // src/index.ts
5004
- var VERSION = "0.21.1";
5013
+ var VERSION = "0.22.0";
5005
5014
 
5006
5015
  // src/generate-manifest.ts
5007
5016
  var MANIFEST_FILE = ".codegen-manifest.json";