diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-05-04 09:39:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-04 09:39:40 -0400 |
commit | 821a4ae5fd92a03dacf125b35bcf977343d27310 (patch) | |
tree | 5e9d2c859a9b1d5a2e4d7b439439be7839eaa0a9 /cli/compilers/ts.rs | |
parent | 58d0c4f9d69591b0cca0152c8f7ce055a2185914 (diff) |
Make it so ts compiler doesn't call cwd op (#5070)
Removes duplicate implementation of the module resolution algorithm
Diffstat (limited to 'cli/compilers/ts.rs')
-rw-r--r-- | cli/compilers/ts.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/compilers/ts.rs b/cli/compilers/ts.rs index bad2be5b2..8a02efeea 100644 --- a/cli/compilers/ts.rs +++ b/cli/compilers/ts.rs @@ -177,6 +177,7 @@ fn req( bundle: bool, unstable: bool, ) -> Buf { + let cwd = std::env::current_dir().unwrap(); let j = match (compiler_config.path, compiler_config.content) { (Some(config_path), Some(config_data)) => json!({ "type": request_type as i32, @@ -187,6 +188,7 @@ fn req( "unstable": unstable, "configPath": config_path, "config": str::from_utf8(&config_data).unwrap(), + "cwd": cwd, }), _ => json!({ "type": request_type as i32, @@ -195,6 +197,7 @@ fn req( "outFile": out_file, "bundle": bundle, "unstable": unstable, + "cwd": cwd, }), }; |