Skip to content
This repository

Fixing Cakefile to not use reserved word 'package' #590

Merged
merged 1 commit into from about 2 years ago

2 participants

Dave Ingram Patrick Filler
Dave Ingram

I don't know when the change occurred, but package is now apparently a reserved word in node.js (I have v0.6.15).

Patrick Filler pfiller merged commit 5df5384 into from
Patrick Filler pfiller closed this
Patrick Filler
Owner

Thanks for re-submitting this, @dingram.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Apr 16, 2012
Dave Ingram Fixing Cakefile to not use reserved word 'package' 07eb743
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 Cakefile
6 Cakefile
@@ -98,9 +98,9 @@ task 'watch', 'watch coffee/ for changes and build Chosen', ->
98 98 task 'package_npm', 'generate the package.json file for npm', package_npm = (cb) ->
99 99 try
100 100 package_file = 'package.json'
101   - package = JSON.parse("#{fs.readFileSync package_file}")
102   - package['version'] = version()
103   - fs.writeFileSync package_file, JSON.stringify(package, null, 2)
  101 + package_obj = JSON.parse("#{fs.readFileSync package_file}")
  102 + package_obj['version'] = version()
  103 + fs.writeFileSync package_file, JSON.stringify(package_obj, null, 2)
104 104 console.log "Wrote #{package_file}"
105 105 cb() if typeof cb is 'function'
106 106 catch e

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.