Skip to content

Commit

Permalink
no tsconfig no register
Browse files Browse the repository at this point in the history
  • Loading branch information
enisdenjo committed Aug 1, 2024
1 parent 3296805 commit 5cebd6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/include/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ export function registerTsconfigPaths({
configName = process.env.MESH_INCLUDE_TSCONFIG_NAME || 'tsconfig.json',
}: RegisterTsconfigPathsOptions = {}): () => void {
const tsconfig = getTsconfig(searchPath, configName);
if (!tsconfig) return; // no tsconfig, no register

const pathsMatcher = createPathsMatcher(tsconfig);

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
Expand Down

0 comments on commit 5cebd6f

Please sign in to comment.