Skip to content

Commit

Permalink
Fixing Cakefile to not use reserved word 'package'
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Ingram committed Apr 16, 2012
1 parent 0bed491 commit 07eb743
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Cakefile
Expand Up @@ -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
Expand Down

0 comments on commit 07eb743

Please sign in to comment.