mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
do not try to compile traces of coffee within node_modules
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user