Skip to content

Commit

Permalink
fix typescompat
Browse files Browse the repository at this point in the history
  • Loading branch information
HBobertz committed Nov 13, 2024
1 parent c4cf4b7 commit 1ef58ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,6 @@ export class Compiler implements Emitter {
}

const pi = this.options.projectInfo;
const configDir = path.dirname(this.configPath);
const absoluteTypesCompat = path.resolve(configDir, pi.tsc?.outDir ?? '.', TYPES_COMPAT);
const relativeTypesCompat = path.relative(configDir, absoluteTypesCompat);

return {
compilerOptions: {
Expand All @@ -370,7 +367,6 @@ export class Compiler implements Emitter {
include: [pi.tsc?.rootDir != null ? path.join(pi.tsc.rootDir, '**', '*.ts') : path.join('**', '*.ts')],
exclude: [
'node_modules',
relativeTypesCompat,
...(pi.excludeTypescript ?? []),
...(pi.tsc?.outDir != null &&
(pi.tsc?.rootDir == null || path.resolve(pi.tsc.outDir).startsWith(path.resolve(pi.tsc.rootDir) + path.sep))
Expand Down
4 changes: 2 additions & 2 deletions test/compiler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ function expectedTypeScriptConfig() {
target: 'es2020',
tsBuildInfoFile: 'tsconfig.tsbuildinfo',
},
exclude: ['node_modules', TYPES_COMPAT],
exclude: ['node_modules'],
include: [join('**', '*.ts')],
};
}
Expand All @@ -475,7 +475,7 @@ function tsconfigForNode18Strict() {
moduleResolution: 'node16',
declaration: true,
},
exclude: ['node_modules', TYPES_COMPAT],
exclude: ['node_modules'],
include: [join('**', '*.ts')],
};
}

0 comments on commit 1ef58ff

Please sign in to comment.