{"action":"opened","issue":{"url":"https://api.github.com/repos/peerigon/updtr/issues/68","repository_url":"https://api.github.com/repos/peerigon/updtr","labels_url":"https://api.github.com/repos/peerigon/updtr/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/peerigon/updtr/issues/68/comments","events_url":"https://api.github.com/repos/peerigon/updtr/issues/68/events","html_url":"https://github.com/peerigon/updtr/issues/68","id":280027585,"number":68,"title":"updtr eats my tabs in package.json and replaces it with spaces (npm)","user":{"login":"moritzjacobs","id":2290460,"avatar_url":"https://avatars2.githubusercontent.com/u/2290460?v=4","gravatar_id":"","url":"https://api.github.com/users/moritzjacobs","html_url":"https://github.com/moritzjacobs","followers_url":"https://api.github.com/users/moritzjacobs/followers","following_url":"https://api.github.com/users/moritzjacobs/following{/other_user}","gists_url":"https://api.github.com/users/moritzjacobs/gists{/gist_id}","starred_url":"https://api.github.com/users/moritzjacobs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moritzjacobs/subscriptions","organizations_url":"https://api.github.com/users/moritzjacobs/orgs","repos_url":"https://api.github.com/users/moritzjacobs/repos","events_url":"https://api.github.com/users/moritzjacobs/events{/privacy}","received_events_url":"https://api.github.com/users/moritzjacobs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-07T07:23:51Z","updated_at":"2017-12-07T07:23:51Z","closed_at":null,"author_association":"NONE","body":"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:\r\n\r\n```sh\r\nmkdir updtr-test\r\ncd updtr-test\r\nnpm init --yes\r\n```\r\ngives us this package.json:\r\n\r\n```js\r\n{\r\n  \"name\": \"updtr-test\",\r\n  \"version\": \"1.0.0\",\r\n  \"description\": \"\",\r\n  \"main\": \"index.js\",\r\n  \"scripts\": {\r\n    \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\"\r\n  },\r\n  \"keywords\": [],\r\n  \"author\": \"\",\r\n  \"license\": \"ISC\"\r\n}\r\n```\r\nNow remove the test (so updtr doesn't fail later) and entab:\r\n\r\n```js\r\n{\r\n\t\"name\": \"updtr-test\",\r\n\t\"version\": \"1.0.0\",\r\n\t\"description\": \"\",\r\n\t\"main\": \"index.js\",\r\n\t\"scripts\": {},\r\n\t\"keywords\": [],\r\n\t\"author\": \"\",\r\n\t\"license\": \"ISC\"\r\n}\r\n```\r\n\r\nthen `npm i del@2.2.2`, which is an old version. package.json looks like:\r\n\r\n```js\r\n{\r\n\t\"name\": \"updtr-test\",\r\n\t\"version\": \"1.0.0\",\r\n\t\"description\": \"\",\r\n\t\"main\": \"index.js\",\r\n\t\"scripts\": {},\r\n\t\"keywords\": [],\r\n\t\"author\": \"\",\r\n\t\"license\": \"ISC\",\r\n\t\"dependencies\": {\r\n\t\t\"del\": \"^2.2.2\"\r\n\t}\r\n}\r\n```\r\nSo tabs all the way. Nice. Now run `updtr`, lo and behold:\r\n\r\n```js\r\n{\r\n  \"name\": \"updtr-test\",\r\n  \"version\": \"1.0.0\",\r\n  \"description\": \"\",\r\n  \"main\": \"index.js\",\r\n  \"scripts\": {},\r\n  \"keywords\": [],\r\n  \"author\": \"\",\r\n  \"license\": \"ISC\",\r\n  \"dependencies\": {\r\n    \"del\": \"^3.0.0\"\r\n  }\r\n}\r\n```\r\n... we're back to 2 spaces, or as I call it: no indentation at all.\r\n\r\nNothing prettier doesn't solve for me, just a small issue. Great tool tho!"}}
{"actor":{"display_login":"moritzjacobs"}}