mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-18 07:29:16 -05:00
Fix the incorrect declaration file path during d.ts file compile in the compilerrunner
This commit is contained in:
@@ -246,7 +246,7 @@ class CompilerBaselineRunner extends RunnerBase {
|
||||
var declFile = ts.forEach(result.declFilesCode,
|
||||
declFile => declFile.fileName === (file.unitName.substr(0, file.unitName.length - ".ts".length) + ".d.ts")
|
||||
? declFile : undefined);
|
||||
return { unitName: rootDir + Harness.Path.getFileName(declFile.fileName), content: declFile.code };
|
||||
return { unitName: declFile.fileName, content: declFile.code };
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user