automagical package.json dependency determination