Increments a version field property in a json file and rewrites the original file
I needed a way to increment the versions for android and ios react-native expo builds in order to be able to use CI and fastlane to submit builds to Play Store and App Store.
$ npm install -g json-version-inc
json-version-inc -j [JSON_FILE_PATH] -p [VERSION_PROPERTY_PATH] -t [TYPE: MAJOR | MINOR | PATCH]
json-version-inc -j ./app.json -p expo.ios.buildNumber -t PATCH
MIT