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:
parent
6becd8fb13
commit
d11fa573e6
2 changed files with 2 additions and 2 deletions
|
@ -110,7 +110,7 @@
|
|||
}
|
||||
return;
|
||||
}
|
||||
if (stats.isDirectory()) {
|
||||
if (stats.isDirectory() && path.dirname(source) !== 'node_modules') {
|
||||
if (opts.watch) {
|
||||
watchDir(source, base);
|
||||
}
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue