Skip to content

Commit

Permalink
Update release
Browse files Browse the repository at this point in the history
  • Loading branch information
ivogabe committed Jan 20, 2015
1 parent d35e6c1 commit 28069f5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion release/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ function compile(param, filters, theReporter) {
}
var langMap = {
'es3': 0 /* ES3 */,
'es5': 1 /* ES5 */
'es5': 1 /* ES5 */,
'es6': 2 /* ES6 */
};
var moduleMap = {
'commonjs': 1 /* CommonJS */,
Expand All @@ -117,6 +118,9 @@ function getCompilerOptions(settings) {
if (settings.noLib !== undefined) {
tsSettings.noLib = settings.noLib;
}
if (settings.noEmitOnError !== undefined) {
tsSettings.noEmitOnError = settings.noEmitOnError;
}
if (settings.target !== undefined) {
tsSettings.target = langMap[(settings.target || 'es3').toLowerCase()];
}
Expand Down

0 comments on commit 28069f5

Please sign in to comment.