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/host.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/host.ts')
-rw-r--r-- | cli/js/compiler/host.ts | 9 |
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)) { |