standard-version-expo
standard-version-expo copied to clipboard
Not matched value between console and execute result.
Description of the bug
Not matched value between console and execute result.
To Reproduce
What steps did you perform which led to this issue?
- run command
standard-version
- Bumped. It showed this on console.
✔ bumping version in package.json from 0.0.0 to 0.0.1
✔ bumping version in app.json from 1 to 0.0.1
✔ bumping version in app.json from 1.0.0 to 0.0.1
- But!
buildNumber
inapp.json
is incremented like below.
Before
{
~~~~~~
"ios": {
"supportsTablet": true,
"buildNumber": "1"
},
~~~~~~
}
After
{
~~~~~~
"ios": {
"supportsTablet": true,
"buildNumber": "2"
},
~~~~~~
}
Expected behavior
✔ bumping version in package.json from 0.0.0 to 0.0.1
✔ bumping version in app.json from 1 to 2
✔ bumping version in app.json from 1.0.0 to 1.0.1
Actual behavior
✔ bumping version in package.json from 0.0.0 to 0.0.1
✔ bumping version in app.json from 1 to 0.0.1
✔ bumping version in app.json from 1.0.0 to 1.0.1
Additional context
.versionrc.js
module.exports = {
bumpFiles: [
{
filename: 'package.json',
},
{
filename: 'app.json',
updater: require.resolve('standard-version-expo/ios/increment'),
},
{
filename: 'app.json',
updater: require.resolve('standard-version-expo'),
}
]
};