mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-12 12:57:11 -06:00
Shorten library to lib in getDefaultLibFilePath for consistency
This commit is contained in:
parent
fd3562b60f
commit
9f977af9cc
@ -5809,13 +5809,13 @@ module ts {
|
||||
* node package.
|
||||
* The functionality is not supported if the ts module is consumed outside of a node module.
|
||||
*/
|
||||
export function getDefaultLibraryFilePath(options: CompilerOptions): string {
|
||||
export function getDefaultLibFilePath(options: CompilerOptions): string {
|
||||
// Check __dirname is defined and that we are on a node.js system.
|
||||
if (typeof __dirname !== "undefined") {
|
||||
return __dirname + directorySeparator + getDefaultLibFilename(options);
|
||||
}
|
||||
|
||||
throw new Error("getDefaultLibraryFilename is only supported when consumed as a node module. ");
|
||||
throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ");
|
||||
}
|
||||
|
||||
function initializeServices() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user