Search code examples
bowerbower-install

Add existing dependencies to bower.json


I accidentally did

bower install jquery

without the --save flag. So this package isn't saved in the dependencies section in bower.json

Is there a command I can run to add all installed packages into the dependency list?


Solution

  • I've written a simple script to scan the installed bower components, and generate the dependency list as a json file.

    The code is on Github: bower-existed-scanner.