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

Retain pubspec.yml contents #17

Open
Agraphie opened this issue Jun 4, 2019 · 2 comments
Open

Retain pubspec.yml contents #17

Agraphie opened this issue Jun 4, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@Agraphie
Copy link

Agraphie commented Jun 4, 2019

Hi there,

thanks for your awesome package! Is there a possibility to retain comments, linebreaks etc. when bumping the version? After bumping the version my pubspec file is very condensed and all comments and linebreaks are deleted.

@f3ath
Copy link
Owner

f3ath commented Jun 5, 2019

This package uses pubspec for pubspec manipulations including encoding/decoding YAML. You'd need to open a feature request (or better a pull request) to that project. Once the "keep original formatting" feature is supported by the pubspec, I'd be happy to use it here.

@f3ath f3ath added the enhancement New feature or request label Jun 5, 2019
@Agraphie
Copy link
Author

Agraphie commented Jun 5, 2019

Hm I played around with it and I updated the updateVersion method to only touch the version in the yaml file. I can open a merge request for that and you can look at it? Seems natural that for changing the version only the version is actually touched.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants