aboutsummaryrefslogtreecommitdiff
path: root/grunt/bs-commonjs-generator.js
diff options
context:
space:
mode:
Diffstat (limited to 'grunt/bs-commonjs-generator.js')
-rw-r--r--grunt/bs-commonjs-generator.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/grunt/bs-commonjs-generator.js b/grunt/bs-commonjs-generator.js
index b0642cd8f..582eefe37 100644
--- a/grunt/bs-commonjs-generator.js
+++ b/grunt/bs-commonjs-generator.js
@@ -1,4 +1,5 @@
'use strict';
+
var fs = require('fs');
var path = require('path');
@@ -15,8 +16,7 @@ module.exports = function generateCommonJSModule(grunt, srcFiles, destFilepath)
var moduleOutputJs = COMMONJS_BANNER + srcFiles.map(srcPathToDestRequire).join('\n');
try {
fs.writeFileSync(destFilepath, moduleOutputJs);
- }
- catch (err) {
+ } catch (err) {
grunt.fail.warn(err);
}
grunt.log.writeln('File ' + destFilepath.cyan + ' created.');