mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
@ -61,7 +61,7 @@
|
|||||||
"source-map-support": "^0.2.10",
|
"source-map-support": "^0.2.10",
|
||||||
"systemjs": "0.18.10",
|
"systemjs": "0.18.10",
|
||||||
"through2": "^0.6.3",
|
"through2": "^0.6.3",
|
||||||
"typescript": "1.5.3",
|
"typescript": "1.6.2",
|
||||||
"vinyl": "^0.4.6",
|
"vinyl": "^0.4.6",
|
||||||
"yargs": "^3.6.0"
|
"yargs": "^3.6.0"
|
||||||
}
|
}
|
||||||
|
@ -56,6 +56,19 @@ module.exports = function createCompilerHost(log) {
|
|||||||
},
|
},
|
||||||
getNewLine: function() {
|
getNewLine: function() {
|
||||||
return ts.sys.newLine;
|
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