eanplatter / forked

:fork_and_knife: forks, forks everywhere.
MIT License
50 stars 4 forks source link

Support for supplied dependency name #5

Closed agarzola closed 8 years ago

agarzola commented 8 years ago

Add support for supplying a dependency name — fork dep, which will perform the following checks:

  1. If cwd == dep, try to fork from current directory; if not…
  2. If ./dep/package.json exists, try to fork from that directory; if not…
  3. If ./node_modules/dep/package.json exists, try to fork from that directory; if not, throw an error.

As discussed in #4.

eanplatter commented 8 years ago

@agarzola Looking good man! This will be a great feature! Just a couple little nit picky things to address!

eanplatter commented 8 years ago

Hey I tested this out locally, works pretty great! thanks man!

agarzola commented 8 years ago

thumbs_up