summaryrefslogtreecommitdiff
path: root/cli/js/compiler.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-05-04 09:39:40 -0400
committerGitHub <noreply@github.com>2020-05-04 09:39:40 -0400
commit821a4ae5fd92a03dacf125b35bcf977343d27310 (patch)
tree5e9d2c859a9b1d5a2e4d7b439439be7839eaa0a9 /cli/js/compiler.ts
parent58d0c4f9d69591b0cca0152c8f7ce055a2185914 (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.ts4
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);
}