diff options
author | James Friend <james.friend@agworld.com.au> | 2014-08-28 05:54:51 +0400 |
---|---|---|
committer | James Friend <james.friend@agworld.com.au> | 2014-08-28 05:54:51 +0400 |
commit | 2bc417732c4142091e92fce07f93c4fff11173b1 (patch) | |
tree | 7e5d7dd2844c2d1cfd7eea97f1265a578bb178da /grunt | |
parent | 015ee2ed74bcdc48eea9bb7f6bb453f1c2f182aa (diff) |
code style fixes
Diffstat (limited to 'grunt')
-rw-r--r-- | grunt/bs-commonjs-generator.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/grunt/bs-commonjs-generator.js b/grunt/bs-commonjs-generator.js index 8ab309b332..e5173944ca 100644 --- a/grunt/bs-commonjs-generator.js +++ b/grunt/bs-commonjs-generator.js @@ -7,11 +7,10 @@ module.exports = function generateCommonJSModule(grunt, srcFiles, destFilepath) function srcPathToDestRequire(srcFilepath) { var requirePath = path.relative(destDir, srcFilepath); - return "require('"+requirePath+"')"; + return 'require(\'' + requirePath + '\')'; } var moduleOutputJs = srcFiles.map(srcPathToDestRequire).join('\n'); - try { fs.writeFileSync(destFilepath, moduleOutputJs); } |