standard-version-expo icon indicating copy to clipboard operation
standard-version-expo copied to clipboard

Not matched value between console and execute result.

Open Suyama-Daichi opened this issue 3 years ago • 0 comments

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 avatar Feb 25 '21 13:02 Suyama-Daichi