We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 843d08b commit 5403ce6Copy full SHA for 5403ce6
src/harness/harness.ts
@@ -2015,7 +2015,7 @@ namespace Harness {
2015
2016
export function isDefaultLibraryFile(filePath: string): boolean {
2017
// We need to make sure that the filePath is prefixed with "lib." not just containing "lib." and end with ".d.ts"
2018
- const fileName = ts.getBaseFileName(filePath);
+ const fileName = ts.getBaseFileName(ts.normalizeSlashes(filePath));
2019
return ts.startsWith(fileName, "lib.") && ts.endsWith(fileName, ".d.ts");
2020
}
2021
0 commit comments