Fix the incorrect declaration file path during d.ts file compile in the compilerrunner

This commit is contained in:
Sheetal Nandi
2014-08-07 14:59:00 -07:00
parent cac18738df
commit 5657c28b8b
2 changed files with 1 additions and 28 deletions

View File

@@ -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 };
}
}