diff --git a/package.json b/package.json index 6cf457383fc..e0a0f6322fb 100644 --- a/package.json +++ b/package.json @@ -35,8 +35,8 @@ "browserify": "latest", "istanbul": "latest", "mocha-fivemat-progress-reporter": "latest", - "tslint": "next", - "typescript": "next", + "tslint": "3.7.1", + "typescript": "1.8.10", "tsd": "latest" }, "scripts": { diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index cf93471207a..5188e32d01a 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -516,6 +516,7 @@ namespace ts { options, fileNames: getFileNames(), typingOptions: getTypingOptions(), + raw: json, errors }; diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 374f2c9ff62..e8c019a5c7b 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -2530,6 +2530,7 @@ namespace ts { options: CompilerOptions; typingOptions?: TypingOptions; fileNames: string[]; + raw?: any; errors: Diagnostic[]; } diff --git a/src/services/shims.ts b/src/services/shims.ts index a9ef3054838..cc6bb233c43 100644 --- a/src/services/shims.ts +++ b/src/services/shims.ts @@ -962,6 +962,7 @@ namespace ts { options: {}, typingOptions: {}, files: [], + raw: {}, errors: [realizeDiagnostic(result.error, "\r\n")] }; } @@ -973,6 +974,7 @@ namespace ts { options: configFile.options, typingOptions: configFile.typingOptions, files: configFile.fileNames, + raw: configFile.raw, errors: realizeDiagnostics(configFile.errors, "\r\n") }; });