Automatically generate package.json dependencies by crawling requires