When you run a bower install mypackage --save
, bower typically uses the tilde range selector (~) prefix to set the latest patch version by default:
"angular-ui-grid": "~3.1.0"
However, since patch versions can sometimes introduce breaking changes (which has happened multiple times with our project's dependencies
), we want to change this behavior to specify the exact version using semver notation instead:
"angular-ui-grid": "3.1.0"
Is there a way to automatically enforce this or make an exact match the default setting? It can be challenging for developers to remember to remove the ~
every time they add a new bower package.