jakejs / jake

JavaScript build tool, similar to Make or Rake. Built to work with Node.js.
http://jakejs.com
Apache License 2.0
1.97k stars 190 forks source link

Load local jake module if it exists #331

Closed navneetgarg123 closed 2 years ago

navneetgarg123 commented 7 years ago

Currently, the global jake executable will always load the globally installed module. This PR allows for a local installation of jake to be required if it exists instead. This is necessary with a project that requires a locally installed jake and is run with a globally installed jake.

welearnednothing commented 3 years ago

@navneetgarg123 I know this is quite the old PR, but with the current load order of Node these days do you know if this is still necessary? I did a quick test and it doesn't seem like it is. Thanks!

mde commented 3 years ago

I think I already rewrote this so that it looks for local Jake, but falls back to global if it can't find one.