summaryrefslogtreecommitdiff
path: root/cli/js/compiler/host.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/compiler/host.ts')
-rw-r--r--cli/js/compiler/host.ts9
1 files changed, 6 insertions, 3 deletions
diff --git a/cli/js/compiler/host.ts b/cli/js/compiler/host.ts
index afe184d3e..de2eacfa9 100644
--- a/cli/js/compiler/host.ts
+++ b/cli/js/compiler/host.ts
@@ -2,7 +2,6 @@
import { ASSETS, MediaType, SourceFile } from "./sourcefile.ts";
import { OUT_DIR, WriteFileCallback, getAsset } from "./util.ts";
-import { cwd } from "../ops/fs/dir.ts";
import { assert, notImplemented } from "../util.ts";
import * as util from "../util.ts";
@@ -167,7 +166,11 @@ export class Host implements ts.CompilerHost {
}
}
- configure(path: string, configurationText: string): ConfigureResponse {
+ configure(
+ cwd: string,
+ path: string,
+ configurationText: string
+ ): ConfigureResponse {
util.log("compiler::host.configure", path);
assert(configurationText);
const { config, error } = ts.parseConfigFileTextToJson(
@@ -179,7 +182,7 @@ export class Host implements ts.CompilerHost {
}
const { options, errors } = ts.convertCompilerOptionsFromJson(
config.compilerOptions,
- cwd()
+ cwd
);
const ignoredOptions: string[] = [];
for (const key of Object.keys(options)) {