Report error requiring references to have composite only if the program is not container only

This commit is contained in:
Sheetal Nandi
2018-10-30 15:22:00 -07:00
parent 0481d44501
commit 60801a261c
11 changed files with 125 additions and 16 deletions

View File

@@ -988,4 +988,16 @@ interface Array<T> {}`
return this.environmentVariables && this.environmentVariables.get(name) || "";
}
}
export const tsbuildProjectsLocation = "/user/username/projects";
export function getTsBuildProjectFilePath(project: string, file: string) {
return `${tsbuildProjectsLocation}/${project}/${file}`;
}
export function getTsBuildProjectFile(project: string, file: string): File {
return {
path: getTsBuildProjectFilePath(project, file),
content: Harness.IO.readFile(`${Harness.IO.getWorkspaceRoot()}/tests/projects/${project}/${file}`)!
};
}
}