Skip to content

Commit

Permalink
update typescript compiler (#8029)
Browse files Browse the repository at this point in the history
## Purpose
TypeScript compilation fails when using Yarn PnP

## Approach
Added file's path normalization for typescript test.
Couldn't add test due to OS specificity

## References
[7412](#7412)
  • Loading branch information
PavelMor25 authored Oct 12, 2023
1 parent b69927a commit 31b97c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/compiler/test-file/formats/typescript/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,10 @@ export default class TypeScriptTestFileCompiler extends APIBasedTestFileCompiler
}

private _compileFilesToCache (ts: TypeScriptInstance, filenames: string[]): void {
const opts = this._tsConfig.getOptions() as Dictionary<CompilerOptionsValue>;
const opts = this._tsConfig.getOptions() as Dictionary<CompilerOptionsValue>;

filenames = filenames.map(name => TypeScriptTestFileCompiler._normalizeFilename(name));

const program = ts.createProgram([TypeScriptTestFileCompiler.tsDefsPath, ...filenames], opts);

DEBUG_LOGGER('version: %s', ts.version);
Expand Down

0 comments on commit 31b97c1

Please sign in to comment.