diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2018-07-27 16:51:19 +1000 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-07-31 20:47:49 -0400 |
commit | 36fa1cea4a6c7c4ae5ac93974843fcdcd4557fef (patch) | |
tree | 785284c625e59ecaf13b1bf9c211354bb3d206c0 /js/runtime.ts | |
parent | b44c235579ac9fbef14d4d33e21f266d0a2ff73e (diff) |
Upgrade TypeScript (3.0.1)
Update runtime to use lib.deno.d.ts
Add proper console declaration
Upgrade prettier (There was an issue formatting lib.deno.d.ts)
Diffstat (limited to 'js/runtime.ts')
-rw-r--r-- | js/runtime.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/js/runtime.ts b/js/runtime.ts index 6f2007268..79f463759 100644 --- a/js/runtime.ts +++ b/js/runtime.ts @@ -214,9 +214,8 @@ class Compiler { module: ts.ModuleKind.AMD, outDir: "$deno$", inlineSourceMap: true, - lib: ["es2017"], inlineSources: true, - target: ts.ScriptTarget.ES2017 + target: ts.ScriptTarget.ESNext }; /* allowJs: true, @@ -317,7 +316,7 @@ class TypeScriptHost implements ts.LanguageServiceHost { } getDefaultLibFileName(options: ts.CompilerOptions): string { - const fn = "lib.d.ts"; // ts.getDefaultLibFileName(options); + const fn = "lib.deno.d.ts"; // ts.getDefaultLibFileName(options); util.log("getDefaultLibFileName", fn); const m = resolveModule(fn, "/$asset$/"); return m.fileName; |