How to make sure Capacitor version in `src-capacitor` and `src` stay the same?
-
We add capacitor related versions and plugins all in
src-capacitor
like these:@capacitor/android @capacitor/cli @capacitor/core @capacitor/ios
however, when they also need to be included inside the
root
package.json, otherwise we can’t open the dev server for the browser.But I noticed other devs in the team sometimes update the dependencies in one location but not the other, causing different capacitor versions to exist in the root and the src-capacitor locations.
How can I avoid this?