Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not matched value between console and execute result. #22

Open
Suyama-Daichi opened this issue Feb 25, 2021 · 0 comments
Open

Not matched value between console and execute result. #22

Suyama-Daichi opened this issue Feb 25, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@Suyama-Daichi
Copy link

Description of the bug

Not matched value between console and execute result.

To Reproduce

What steps did you perform which led to this issue?

  1. run command standard-version
  2. 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
  1. But! buildNumber in app.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'),
    }
  ]
};
@Suyama-Daichi Suyama-Daichi added the bug Something isn't working label Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant