mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
@ -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"
|
||||
}
|
||||
|
@ -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 });
|
||||
}
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user