Merge pull request #30773 from Microsoft/update-user-tests

Update TypeScript-React-Native-Starter
This commit is contained in:
Nathan Shively-Sanders
2019-04-05 11:18:27 -07:00
committed by GitHub
3 changed files with 8 additions and 6 deletions
+2 -1
View File
@@ -10,6 +10,7 @@ interface ExecResult {
interface UserConfig {
types: string[];
path?: string;
}
abstract class ExternalCompileRunnerBase extends RunnerBase {
@@ -57,7 +58,7 @@ abstract class ExternalCompileRunnerBase extends RunnerBase {
ts.Debug.assert(!!config.types, "Bad format from test.json: Types field must be present.");
types = config.types;
cwd = submoduleDir;
cwd = config.path ? path.join(cwd, config.path) : submoduleDir;
}
if (fs.existsSync(path.join(cwd, "package.json"))) {
if (fs.existsSync(path.join(cwd, "package-lock.json"))) {