mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 03:21:20 -05:00
Updating fs module to the latest Node.js -- that's fs.readFile, not fs.cat, with string flags for fs.open
This commit is contained in:
@@ -31,7 +31,7 @@ exports.run: ->
|
||||
path.exists 'Cakefile', (exists) ->
|
||||
throw new Error('Cakefile not found in ' + process.cwd()) unless exists
|
||||
args: process.ARGV[2...process.ARGV.length]
|
||||
fs.cat('Cakefile').addCallback (source) ->
|
||||
fs.readFile('Cakefile').addCallback (source) ->
|
||||
eval coffee.compile source
|
||||
return print_tasks() unless args.length
|
||||
for arg in args
|
||||
|
||||
Reference in New Issue
Block a user