Permalink
Browse files

Merge pull request #590 from dingram/cakefile-fixes

Fixing Cakefile to not use reserved word 'package'
  • Loading branch information...
2 parents 1974a9e + 07eb743 commit 5df5384d10a0209376cdf194ed13a89fa9a1cfaf @pfiller pfiller committed Apr 23, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 Cakefile
View
@@ -98,9 +98,9 @@ task 'watch', 'watch coffee/ for changes and build Chosen', ->
task 'package_npm', 'generate the package.json file for npm', package_npm = (cb) ->
try
package_file = 'package.json'
- package = JSON.parse("#{fs.readFileSync package_file}")
- package['version'] = version()
- fs.writeFileSync package_file, JSON.stringify(package, null, 2)
+ package_obj = JSON.parse("#{fs.readFileSync package_file}")
+ package_obj['version'] = version()
+ fs.writeFileSync package_file, JSON.stringify(package_obj, null, 2)
console.log "Wrote #{package_file}"
cb() if typeof cb is 'function'
catch e

0 comments on commit 5df5384

Please sign in to comment.