Closed
Description
Well as the title says, if you run coffee directory
CoffeeScript will "execute" every coffee file found within that directory, as if they were all called directly (coffee dir/foo.coffee
, coffee dir/bar.coffee
, etc). This is very different behavior from node directory
which will look for, and only execute, an index.js
file if found.
Is this a bug? Or working as intended?
Note that the work-around is not hard, simply execute the index file explicitly, such as: coffee directory/index.coffee
, it just seems more logical that coffee dir
and node dir
should do the same things, as they do the same thing when used like coffee file
and node file
.