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/js/compiler.ts | |
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/js/compiler.ts')
-rw-r--r-- | cli/js/compiler.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/js/compiler.ts b/cli/js/compiler.ts index 385b76eec..d3cd67119 100644 --- a/cli/js/compiler.ts +++ b/cli/js/compiler.ts @@ -54,6 +54,7 @@ interface CompilerRequestCompile { unstable: boolean; bundle: boolean; outFile?: string; + cwd: string; } interface CompilerRequestRuntimeCompile { @@ -100,6 +101,7 @@ async function compile( rootNames, target, unstable, + cwd, } = request; util.log(">>> compile start", { rootNames, @@ -132,7 +134,7 @@ async function compile( // if there is a configuration supplied, we need to parse that if (config && config.length && configPath) { - const configResult = host.configure(configPath, config); + const configResult = host.configure(cwd, configPath, config); diagnostics = processConfigureResponse(configResult, configPath); } |