summaryrefslogtreecommitdiff
path: root/js/compiler.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2018-10-12 08:23:13 +1100
committerRyan Dahl <ry@tinyclouds.org>2018-10-11 20:29:43 -0400
commitec402c6932128d215f78c77661d84472a89b72b1 (patch)
tree899cfd7895c900300ad6c9199f277377c5d093fb /js/compiler.ts
parentfda7aaa10e173bfa8ef864a74a274af69fc01cca (diff)
Replace globals.d.ts with lib.deno_runtime.d.ts
Diffstat (limited to 'js/compiler.ts')
-rw-r--r--js/compiler.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/js/compiler.ts b/js/compiler.ts
index 7b577a8b9..c398f181d 100644
--- a/js/compiler.ts
+++ b/js/compiler.ts
@@ -13,6 +13,7 @@ import * as sourceMaps from "./v8_source_maps";
const EOL = "\n";
const ASSETS = "$asset$";
+const LIB_RUNTIME = "lib.deno_runtime.d.ts";
// tslint:disable:no-any
type AmdCallback = (...args: any[]) => void;
@@ -619,7 +620,7 @@ export class DenoCompiler
getDefaultLibFileName(): string {
this._log("getDefaultLibFileName()");
- const moduleSpecifier = "globals.d.ts";
+ const moduleSpecifier = LIB_RUNTIME;
const moduleMetaData = this.resolveModule(moduleSpecifier, ASSETS);
return moduleMetaData.fileName;
}
@@ -649,8 +650,8 @@ export class DenoCompiler
return moduleNames.map(name => {
let resolvedFileName;
if (name === "deno") {
- // builtin modules are part of `globals.d.ts`
- resolvedFileName = this._resolveModuleName("globals.d.ts", ASSETS);
+ // builtin modules are part of the runtime lib
+ resolvedFileName = this._resolveModuleName(LIB_RUNTIME, ASSETS);
} else if (name === "typescript") {
resolvedFileName = this._resolveModuleName("typescript.d.ts", ASSETS);
} else {