Bundle info paths as relative to tsbuildinfo file

This commit is contained in:
Sheetal Nandi
2019-06-19 13:17:26 -07:00
parent 9446fc0c0c
commit b9fc44ece7
92 changed files with 1334 additions and 1309 deletions

View File

@@ -322,8 +322,8 @@ namespace ts.tscWatch {
path: `${project}/out.tsbuildinfo`,
content: getBuildInfoText({
bundle: {
commonSourceDirectory: `${project}/`,
sourceFiles: [file1.path, file2.path],
commonSourceDirectory: relativeToBuildInfo(`${project}/out.tsbuildinfo`, `${project}/`),
sourceFiles: [file1Path, file2Path],
js: {
sections: [
{ pos: 0, end: outFile.content.length, kind: BundleFileSectionKind.Text }
@@ -550,8 +550,8 @@ namespace ts.tscWatch {
path: `${project}/out.tsbuildinfo`,
content: getBuildInfoText({
bundle: {
commonSourceDirectory: `${project}/`,
sourceFiles: [file1.path, file2.path],
commonSourceDirectory: relativeToBuildInfo(`${project}/out.tsbuildinfo`, `${project}/`),
sourceFiles: [file1Path, file2Path],
js: {
sections: [
{ pos: 0, end: outFile.content.length, kind: BundleFileSectionKind.Text }