fixes #580 by `delete`ing the compiler from `require.cache` and `require`ing it again

This commit is contained in:
Michael Ficarra 2011-08-10 21:26:16 -04:00
parent fc1cdfc913
commit e5b77b180a
1 changed files with 3 additions and 1 deletions

View File

@ -69,7 +69,9 @@ task 'build', 'build the CoffeeScript language from source', build = (cb) ->
task 'build:full', 'rebuild the source twice, and run the tests', ->
build ->
build ->
process.exit 1 unless runTests CoffeeScript
csPath = fs.realpathSync './lib/coffee-script'
unless runTests require csPath
process.exit 1
task 'build:parser', 'rebuild the Jison parser (run build first)', ->