Permalink
Browse files

Fixing Cakefile to not use reserved word 'package'

  • Loading branch information...
1 parent 0bed491 commit 07eb74315787f9fd59beb6fa70f8ea39117dea03 Dave Ingram committed Apr 16, 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 07eb743

Please sign in to comment.