From 9f977af9cc88fc64ab70d721655b3d0af1908c5d Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Thu, 29 Jan 2015 11:22:00 -0800 Subject: [PATCH] Shorten library to lib in getDefaultLibFilePath for consistency --- src/services/services.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/services.ts b/src/services/services.ts index d0810442b66..933c98d0a8c 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -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() {