Upgrade typescript to 1.6.2

Closes #232.
This commit is contained in:
Tim Lancina
2015-10-09 12:10:09 -05:00
parent 03cb1a7a5b
commit a339ba1732
2 changed files with 15 additions and 2 deletions

View File

@ -56,7 +56,20 @@ module.exports = function createCompilerHost(log) {
},
getNewLine: function() {
return ts.sys.newLine;
},
fileExists: function(fileName) {
var resolvedPath = path.resolve(baseDir, fileName);
try {
fs.statSync(resolvedPath);
return true;
} catch (e) {
return false;
}
},
readFile: function(fileName) {
var resolvedPath = path.resolve(baseDir, fileName);
return fs.readFileSync(resolvedPath, { encoding: options.charset });
}
};
};
};
};