We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Instead of the regex to read the JSON file, it should be read in, modified then written back out:
var jsonPath = 'path/to/file.json'; var json = require(jsonPath); json = JSON.parse(json); json.version = newVersion; require('fs').write(jsonPath, json)
code is not to scale and is example only
The text was updated successfully, but these errors were encountered:
bump:git
that assumes you're only going to bump versions in json files? That is not my use case.
Sorry, something went wrong.
Well if the file isn't a .json then it can do a regular regex. If it is a JSON file then it should parse it and not regex it.
.json
No branches or pull requests
Instead of the regex to read the JSON file, it should be read in, modified then written back out:
code is not to scale and is example only
The text was updated successfully, but these errors were encountered: