mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Merge pull request #30773 from Microsoft/update-user-tests
Update TypeScript-React-Native-Starter
This commit is contained in:
@@ -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"))) {
|
||||
|
||||
Reference in New Issue
Block a user