You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently my teams package.json files are using an indent of 4 spaces. When running lerna repair it reconfigures the root project.json to use 2 spaces. It would be nice if we were able to control the indent spacing within the lerna.json file.
Motivation
So teams that have different spacing in their package.json files remain untouched.
Suggested Implementation
ability to set indent within lerna.json file
{
indent: 2
}
Alternate Implementations
or via a flag --indent=2
The text was updated successfully, but these errors were encountered:
Hi @ndrone-kr, do you happen to be using Prettier in your repo? Lerna will detect an installed prettier configuration and automatically run it on the files that it updates with lerna repair to ensure that workspace formatting rules are respected. If you are using prettier and want to ignore package.json, you can add it to the .prettierignore file (https://prettier.io/docs/en/ignore.html)
Thanks for following up @ndrone-kr . I've recreated the issue. It looks like prettier config is not being properly respected during the repair command. I'm looking into a fix.
Description
Currently my teams package.json files are using an indent of 4 spaces. When running
lerna repair
it reconfigures the root project.json to use 2 spaces. It would be nice if we were able to control the indent spacing within thelerna.json
file.Motivation
So teams that have different spacing in their package.json files remain untouched.
Suggested Implementation
ability to set indent within
lerna.json
fileAlternate Implementations
or via a flag
--indent=2
The text was updated successfully, but these errors were encountered: