-
Notifications
You must be signed in to change notification settings - Fork 33
-
Notifications
You must be signed in to change notification settings - Fork 33
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
updtr eats my tabs in package.json and replaces it with spaces (npm) #68
Comments
Merged
jhnns
pushed a commit
that referenced
this issue
Oct 3, 2018
Respects the user's indentation in their `package.json` Fixes #68
Shipped with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Awesome tool, I just have a small, very low priority issue with it: I use tabs in my
package.json
– I know, right? npm totally respects my decision, updtr does not, here's a reproducible testcase:mkdir updtr-test cd updtr-test npm init --yes
gives us this package.json:
Now remove the test (so updtr doesn't fail later) and entab:
then
npm i del@2.2.2
, which is an old version. package.json looks like:So tabs all the way. Nice. Now run
updtr
, lo and behold:... we're back to 2 spaces, or as I call it: no indentation at all.
Nothing prettier doesn't solve for me, just a small issue. Great tool tho!
The text was updated successfully, but these errors were encountered: