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

@ -61,7 +61,7 @@
"source-map-support": "^0.2.10",
"systemjs": "0.18.10",
"through2": "^0.6.3",
"typescript": "1.5.3",
"typescript": "1.6.2",
"vinyl": "^0.4.6",
"yargs": "^3.6.0"
}

View File

@ -56,6 +56,19 @@ 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 });
}
};
};