1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-21 21:50:00 -05:00

Update to TypeScript 3.1 and ts-simple-ast 17 (#980)

This commit is contained in:
Kitson Kelly 2018-10-16 03:47:48 +11:00 committed by Ryan Dahl
parent dc8841d8a9
commit 25c97962f4
5 changed files with 11 additions and 14 deletions

View file

@ -22,10 +22,10 @@
"source-map-support": "^0.5.6",
"text-encoding": "0.6.4",
"ts-node": "^7.0.1",
"ts-simple-ast": "^16.0.4",
"ts-simple-ast": "^17.0.0",
"tslint": "^5.10.0",
"tslint-eslint-rules": "^5.3.1",
"tslint-no-circular-imports": "^0.5.0",
"typescript": "3.0.3"
"typescript": "3.1.3"
}
}

View file

@ -1,7 +1,7 @@
[WILDCARD]tests/error_003_typescript.tsILDCARD] - error TS2552: Cannot find name 'consol'. Did you mean 'console'?
[WILDCARD][0m consol.log("hello world!");
  ~~~~~~
[WILDCARD] consol.log("hello world!");
[WILDCARD]~~~~~~
$asset$/lib.deno_runtime.d.tsILDCARD]
[WILDCARD]const console: console.Console;

@ -1 +1 @@
Subproject commit a133fa714b960d8f88c55188ccc1a41882961e6e
Subproject commit e1a853036189b8694dcc42db4d43433edb6c9036

View file

@ -2,12 +2,10 @@ import { writeFileSync } from "fs";
import * as prettier from "prettier";
import {
ExpressionStatement,
ModuleKind,
ModuleResolutionKind,
NamespaceDeclarationKind,
Project,
ScriptTarget,
SourceFile,
ts,
Type,
TypeGuards
} from "ts-simple-ast";
@ -52,6 +50,8 @@ export interface BuildLibraryOptions {
silent?: boolean;
}
const { ModuleKind, ModuleResolutionKind, ScriptTarget } = ts;
/**
* A preamble which is appended to the start of the library.
*/

View file

@ -2,16 +2,13 @@
//
// ./node_modules/.bin/ts-node --project tools/ts_library_builder/tsconfig.json tools/ts_library_builder/test.ts
import {
ModuleKind,
ModuleResolutionKind,
Project,
ScriptTarget
} from "ts-simple-ast";
import { Project, ts } from "ts-simple-ast";
import { assert, assertEqual, test } from "../../js/testing/testing";
import { flatten, merge } from "./build_library";
import { loadDtsFiles } from "./ast_util";
const { ModuleKind, ModuleResolutionKind, ScriptTarget } = ts;
/** setups and returns the fixtures for testing */
function setupFixtures() {
const basePath = process.cwd();