pubspec-version icon indicating copy to clipboard operation
pubspec-version copied to clipboard

Retain pubspec.yml contents

Open Agraphie opened this issue 6 years ago • 2 comments

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.

Agraphie avatar Jun 04 '19 12:06 Agraphie

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 avatar Jun 05 '19 01:06 f3ath

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.

Agraphie avatar Jun 05 '19 11:06 Agraphie