chore(typescript 1.6 upgrade): fix build.js and docs

This commit is contained in:
Alex Eagle
2015-09-23 15:02:37 -07:00
committed by Victor Savkin
parent 2ee32fb02c
commit 7a53f82516
12 changed files with 148 additions and 124 deletions

View File

@ -4,6 +4,7 @@
import fs = require('fs');
import fse = require('fs-extra');
import path = require('path');
import * as ts from 'typescript';
import {wrapDiffingPlugin, DiffingBroccoliPlugin, DiffResult} from './diffing-broccoli-plugin';
@ -187,6 +188,7 @@ class CustomLanguageServiceHost implements ts.LanguageServiceHost {
constructor(private compilerOptions: ts.CompilerOptions, private fileNames: string[],
private fileRegistry: FileRegistry, private treeInputPath: string) {
this.currentDirectory = process.cwd();
console.log("compilerOptions", compilerOptions);
this.defaultLibFilePath = ts.getDefaultLibFilePath(compilerOptions).replace(/\\/g, '/');
}
@ -238,6 +240,7 @@ class CustomLanguageServiceHost implements ts.LanguageServiceHost {
getDefaultLibFileName(options: ts.CompilerOptions): string {
console.log("defaultLibFilePath", this.defaultLibFilePath);
// ignore options argument, options should not change during the lifetime of the plugin
return this.defaultLibFilePath;
}