mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
Merge pull request #2710 from troels/fix-full-build-tests
Build:full sometimes uses old code when running tests.
This commit is contained in:
commit
8f0a7774f9
1 changed files with 5 additions and 1 deletions
6
Cakefile
6
Cakefile
|
@ -67,7 +67,11 @@ task 'build:full', 'rebuild the source twice, and run the tests', ->
|
|||
build ->
|
||||
build ->
|
||||
csPath = './lib/coffee-script'
|
||||
delete require.cache[require.resolve csPath]
|
||||
csDir = path.dirname require.resolve csPath
|
||||
|
||||
for mod of require.cache when csDir is mod[0 ... csDir.length]
|
||||
delete require.cache[mod]
|
||||
|
||||
unless runTests require csPath
|
||||
process.exit 1
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue