beachball icon indicating copy to clipboard operation
beachball copied to clipboard

Change indentation

Open Netail opened this issue 1 year ago • 1 comments

Hi team Beachball, Would it be possible to change the JSON indentation? Currently the indentation is set to 2 spaces https://github.com/microsoft/beachball/blob/6025c6dba0f844091cb0db6d511f243bbc6e902a/src/bump/performBump.ts#L40 but wouldn't be nice to make this an option to e.g. change to 4. Maybe a dynamic indentation; use current indentation if file exists else use root package.json indentation

Context: We use 4 spaces within our company and beachball resets the CHANGELOG.json & package.json formatting to 2 spaces and then our formatters change it to 4 again. And it goes back-and-forth like that :(

Netail avatar Feb 19 '24 14:02 Netail

@kenotron @ecraig12345 What you guys think of the related pull request? Something like 'auto' could be added in the future?

Netail avatar Jun 05 '24 08:06 Netail

Moved back to changeset

Netail avatar Aug 23 '24 12:08 Netail