Description
Describe the bug
It seems so that I'm not able to hand the same structure into the command line arg --bumpFiles
as by using the .versionrc
file.
Current behavior
running commit-and-tag-version --bumpFiles "[{\"filename\":\"custom-bump-file.md\",\"updater\":\"custom-updater.js\"}]"
succeeds but without updating the custom-bump-file.md
and with instead saying:
Unable to obtain updater for: "[{\"filename\":\"custom-bump-file.md\",\"updater\":\"custom-updater.js\"}]"
- Error: Unsupported file ([{"filename":"custom-bump-file.md","updater":"custom-updater.js"}]) provided for bumping.
Expected behavior
I would like the command line arg to be able to work with the same input as the .versionrc
file
Environment
commit-and-tag-version
version(s): 10.1.0- Node/npm version: Node v18.7.0 / npm 8.15.0
- OS: macOS Monterey 12.5
Possible Solution
I'm guessing the command line arg is not parsed/interpreted as a json object?
Additional context
Why am I not just use the .versionrc
file: I would like to call the commit-and-tag-version tool multiple times with different configuration for which additional files (besides the CHANGELOG.md) to update. For that I would like to just hand over the different configuration using the --bumpFiles command line arg.