Skip to content

Commit 27c1bb8

Browse files
committed
Expose getDefaultLibFileName
1 parent 96995e7 commit 27c1bb8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/compiler/core.ts

-4
Original file line numberDiff line numberDiff line change
@@ -659,10 +659,6 @@ module ts {
659659
"\u0085": "\\u0085" // nextLine
660660
};
661661

662-
export function getDefaultLibFileName(options: CompilerOptions): string {
663-
return options.target === ScriptTarget.ES6 ? "lib.es6.d.ts" : "lib.d.ts";
664-
}
665-
666662
export interface ObjectAllocator {
667663
getNodeConstructor(kind: SyntaxKind): new () => Node;
668664
getSymbolConstructor(): new (flags: SymbolFlags, name: string) => Symbol;

src/compiler/program.ts

+4
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ module ts {
137137
}
138138
}
139139

140+
export function getDefaultLibFileName(options: CompilerOptions): string {
141+
return options.target === ScriptTarget.ES6 ? "lib.es6.d.ts" : "lib.d.ts";
142+
}
143+
140144
export function createProgram(rootNames: string[], options: CompilerOptions, host?: CompilerHost): Program {
141145
let program: Program;
142146
let files: SourceFile[] = [];

0 commit comments

Comments
 (0)