Skip to content
This repository was archived by the owner on Dec 12, 2023. It is now read-only.

Commit 9b17794

Browse files
committed
Update TypeScript compiler options/config
1 parent e744f45 commit 9b17794

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

src/lib/compile.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export function compile (
6060
options: Options
6161
): Promise<CompileResult> {
6262
const { name, cwd, global } = options
63-
const readFiles: ts.Map<Promise<string>> = {}
63+
const readFiles: ts.MapLike<Promise<string>> = {}
6464

6565
// Ensure the global installation is valid.
6666
if (tree.global && !global) {
@@ -80,7 +80,7 @@ export function compile (
8080
}
8181

8282
return Promise.all(resolutions.map(resolution => {
83-
const imported: ts.Map<boolean> = {}
83+
const imported: ts.MapLike<boolean> = {}
8484

8585
return compileDependencyTree(tree, extend(options, {
8686
resolution,
@@ -110,8 +110,8 @@ export function compile (
110110
*/
111111
interface CompileOptions extends Options {
112112
resolution: string
113-
readFiles: ts.Map<Promise<string>>
114-
imported: ts.Map<boolean>
113+
readFiles: ts.MapLike<Promise<string>>
114+
imported: ts.MapLike<boolean>
115115
name: string
116116
emitter: Emitter
117117
}
@@ -175,8 +175,8 @@ function getStringifyOptions (
175175
}
176176
}
177177

178-
const referenced: ts.Map<boolean> = {}
179-
const dependencies: ts.Map<StringifyOptions> = {}
178+
const referenced: ts.MapLike<boolean> = {}
179+
const dependencies: ts.MapLike<StringifyOptions> = {}
180180
const entry = main == null ? undefined : normalizeToDefinition(main)
181181
const prefix = `${parent ? parent.prefix : ''}${DEPENDENCY_SEPARATOR}${options.name}`
182182

@@ -233,8 +233,8 @@ interface StringifyOptions extends CompileOptions {
233233
entry: string
234234
prefix: string
235235
overrides: Overrides
236-
referenced: ts.Map<boolean>
237-
dependencies: ts.Map<StringifyOptions>
236+
referenced: ts.MapLike<boolean>
237+
dependencies: ts.MapLike<StringifyOptions>
238238
tree: DependencyTree
239239
parent: StringifyOptions
240240
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"module": "commonjs",
66
"rootDir": "src",
77
"moduleResolution": "node",
8-
"noLib": true,
8+
"lib": ["es5"],
99
"declaration": true,
1010
"noImplicitAny": true,
1111
"removeComments": true,

typings.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
"thenify": "registry:npm/thenify#3.1.0+20160211003958",
2929
"throat": "registry:npm/throat#2.0.0+20160404004338",
3030
"touch": "registry:npm/touch#1.0.0+20160211003958",
31-
"typescript": "npm:typescript",
3231
"xtend": "registry:npm/xtend#4.0.0+20160211003958",
3332
"zip-object": "registry:npm/zip-object#0.1.0+20160211003958"
3433
},
@@ -37,7 +36,6 @@
3736
"nock": "registry:npm/nock#0.7.0+20160211003958"
3837
},
3938
"globalDependencies": {
40-
"core": "npm:typescript/lib/lib.core.d.ts",
4139
"node": "registry:env/node#6.0.0+20160622202520"
4240
}
4341
}

0 commit comments

Comments
 (0)