1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00

Update to TypeScript 3.3 (#1908)

This commit is contained in:
Kitson Kelly 2019-03-12 01:53:18 +11:00 committed by Ryan Dahl
parent 034e2cc028
commit 75a500ba81
5 changed files with 8 additions and 11 deletions

View file

@ -24,6 +24,6 @@
"rollup-pluginutils": "2.4.1", "rollup-pluginutils": "2.4.1",
"ts-morph": "1.3.0", "ts-morph": "1.3.0",
"ts-node": "8.0.2", "ts-node": "8.0.2",
"typescript": "3.2.2" "typescript": "3.3.3333"
} }
} }

@ -1 +1 @@
Subproject commit 1d46f6634d7feb9889cf69c14e80803deaeaa68d Subproject commit 01882836f1112fe6d9df59f4f1a74797fa29e490

View file

@ -360,9 +360,9 @@ export function main({
baseUrl: basePath, baseUrl: basePath,
declaration: true, declaration: true,
emitDeclarationOnly: true, emitDeclarationOnly: true,
lib: ["esnext"],
module: ModuleKind.ESNext, module: ModuleKind.ESNext,
moduleResolution: ModuleResolutionKind.NodeJs, moduleResolution: ModuleResolutionKind.NodeJs,
// noLib: true,
paths: { paths: {
"*": ["*", `${buildPath}/*`] "*": ["*", `${buildPath}/*`]
}, },
@ -402,8 +402,8 @@ export function main({
const declarationProject = new Project({ const declarationProject = new Project({
compilerOptions: { compilerOptions: {
baseUrl: basePath, baseUrl: basePath,
lib: ["esnext"],
moduleResolution: ModuleResolutionKind.NodeJs, moduleResolution: ModuleResolutionKind.NodeJs,
noLib: true,
paths: { paths: {
"*": ["*", `${buildPath}/*`] "*": ["*", `${buildPath}/*`]
}, },
@ -432,6 +432,7 @@ export function main({
const outputProject = new Project({ const outputProject = new Project({
compilerOptions: { compilerOptions: {
baseUrl: buildPath, baseUrl: buildPath,
lib: ["esnext"],
moduleResolution: ModuleResolutionKind.NodeJs, moduleResolution: ModuleResolutionKind.NodeJs,
strict: true, strict: true,
target: ScriptTarget.ESNext target: ScriptTarget.ESNext

View file

@ -1,5 +1,6 @@
{ {
"compilerOptions": { "compilerOptions": {
"lib": ["esnext"],
"moduleResolution": "node", "moduleResolution": "node",
"strict": true, "strict": true,
"target": "esnext" "target": "esnext"

View file

@ -4,11 +4,11 @@
"allowUnreachableCode": false, "allowUnreachableCode": false,
"baseUrl": ".", "baseUrl": ".",
"checkJs": true, "checkJs": true,
"lib": ["esnext"],
"module": "esnext", "module": "esnext",
"moduleResolution": "node", "moduleResolution": "node",
"noImplicitReturns": true, "noImplicitReturns": true,
"noFallthroughCasesInSwitch": true, "noFallthroughCasesInSwitch": true,
"noLib": true,
"noUnusedLocals": true, "noUnusedLocals": true,
"paths": { "paths": {
"*": ["*", "target/debug/*", "target/release/*"] "*": ["*", "target/debug/*", "target/release/*"]
@ -22,10 +22,5 @@
"target": "esnext", "target": "esnext",
"types": [] "types": []
}, },
"files": [ "files": ["js/lib.web_assembly.d.ts", "js/main.ts", "js/compiler.ts"]
"node_modules/typescript/lib/lib.esnext.d.ts",
"js/lib.web_assembly.d.ts",
"js/main.ts",
"js/compiler.ts"
]
} }