1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

do not try to compile traces of coffee within node_modules

This commit is contained in:
Jeremy Ashkenas 2013-01-14 11:45:02 -08:00
parent 6becd8fb13
commit d11fa573e6
2 changed files with 2 additions and 2 deletions

View file

@ -110,7 +110,7 @@
}
return;
}
if (stats.isDirectory()) {
if (stats.isDirectory() && path.dirname(source) !== 'node_modules') {
if (opts.watch) {
watchDir(source, base);
}

View file

@ -95,7 +95,7 @@ compilePath = (source, topLevel, base) ->
console.error "File not found: #{source}"
process.exit 1
return
if stats.isDirectory()
if stats.isDirectory() and path.dirname(source) isnt 'node_modules'
watchDir source, base if opts.watch
fs.readdir source, (err, files) ->
throw err if err and err.code isnt 'ENOENT'