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:
parent
dc8841d8a9
commit
25c97962f4
5 changed files with 11 additions and 14 deletions
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[96m[WILDCARD]tests/error_003_typescript.ts[WILDCARD] - [91merror[0m[90m TS2552: [0mCannot find name 'consol'. Did you mean 'console'?
|
||||
|
||||
[30;47m[WILDCARD][0m consol.log("hello world!");
|
||||
[30;47m [0m [91m~~~~~~[0m
|
||||
[WILDCARD] consol.log("hello world!");
|
||||
[WILDCARD]~~~~~~[0m
|
||||
|
||||
[96m$asset$/lib.deno_runtime.d.ts[WILDCARD]
|
||||
[WILDCARD]const console: console.Console;
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit a133fa714b960d8f88c55188ccc1a41882961e6e
|
||||
Subproject commit e1a853036189b8694dcc42db4d43433edb6c9036
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue