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
lerna repair does not respect prettier configuration #3925
Comments
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 |
I am using prettier. Let me update the |
After updating the |
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: