Description
Description
I'm using commitizen in a expo + react-native project
I do cz init and make a .cz.json like this
{
"commitizen": {
"name": "cz_conventional_commits",
"tag_format": "test-$version",
"version_scheme": "semver",
"version": "3.2.4",
"update_changelog_on_bump": true,
"version_files": [
"package.json:version",
"app.json:expo.version"
]
}
}
btw I select commitizen(default)
not npm
in source of the version
then I do cz commit
and cz bump
everything finish
version in .cz.json did update
but version in package.json and app.json not update
I'm not sure is it a bug or not,
maybe is something I missed in configuration?
or is a syntax error?
Steps to reproduce
- run
cz init
. - select
.cz.json
cz_conventional_commits(default)
commitizen(default)
Y (latest tag)
semver
n (correct tag format)
test-$version
Y (auto changelog)
enter (with no hooks)
- manually setting
version_files
in .cz.json - create new commit
- run
cz bump
Current behavior
after I setting package.json:version
and app.json:expo.version
I think these 2 files will update the correct version
same as the version in .cz.json
but not
Desired behavior
I want these 3 files update with same and correct version
- package.json (version)
- app.json (expo.version)
- .cz.json (version)
Screenshots
No response
Environment
Commitizen Version: 4.4.1
Python Version: 3.13.2 (main, Feb 4 2025, 14:51:09) [Clang 16.0.0 (clang-1600.0.26.6)]
Operating System: Darwin