{"action":"created","issue":{"url":"https://api.github.com/repos/typings/typings/issues/147","labels_url":"https://api.github.com/repos/typings/typings/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/typings/typings/issues/147/comments","events_url":"https://api.github.com/repos/typings/typings/issues/147/events","html_url":"https://github.com/typings/typings/issues/147","id":130421211,"number":147,"title":"\"main\" file ignored when using local typings","user":{"login":"louy","id":349850,"avatar_url":"https://avatars.githubusercontent.com/u/349850?v=3","gravatar_id":"","url":"https://api.github.com/users/louy","html_url":"https://github.com/louy","followers_url":"https://api.github.com/users/louy/followers","following_url":"https://api.github.com/users/louy/following{/other_user}","gists_url":"https://api.github.com/users/louy/gists{/gist_id}","starred_url":"https://api.github.com/users/louy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/louy/subscriptions","organizations_url":"https://api.github.com/users/louy/orgs","repos_url":"https://api.github.com/users/louy/repos","events_url":"https://api.github.com/users/louy/events{/privacy}","received_events_url":"https://api.github.com/users/louy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/typings/typings/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-02-01T17:09:25Z","updated_at":"2016-02-02T09:40:58Z","closed_at":null,"body":"when installing typings with local version (`node_modules/.bin/typings`) we get different output than the global one.\r\n\r\nmainly, installing with local version ignores the value of `\"main\"` in `typings.json` for some reason.\r\n## How to reproduce\r\n\r\n```bash\r\n\r\ntypings install --save chalk\r\n\r\ncat typings/main/definitions/chalk/chalk.d.ts\r\n# ...\r\n# declare module 'chalk' {\r\n#   import main = require('chalk/index'); \r\n#   export = main;\r\n# }\r\n\r\nrm -rf typings\r\nnode_modules/.bin/typings install\r\n\r\ncat typings/main/definitions/chalk/chalk.d.ts\r\n# ...\r\n# declare module 'chalk' { }\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/typings/typings/issues/comments/178476499","html_url":"https://github.com/typings/typings/issues/147#issuecomment-178476499","issue_url":"https://api.github.com/repos/typings/typings/issues/147","id":178476499,"user":{"login":"louy","id":349850,"avatar_url":"https://avatars.githubusercontent.com/u/349850?v=3","gravatar_id":"","url":"https://api.github.com/users/louy","html_url":"https://github.com/louy","followers_url":"https://api.github.com/users/louy/followers","following_url":"https://api.github.com/users/louy/following{/other_user}","gists_url":"https://api.github.com/users/louy/gists{/gist_id}","starred_url":"https://api.github.com/users/louy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/louy/subscriptions","organizations_url":"https://api.github.com/users/louy/orgs","repos_url":"https://api.github.com/users/louy/repos","events_url":"https://api.github.com/users/louy/events{/privacy}","received_events_url":"https://api.github.com/users/louy/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T09:40:58Z","updated_at":"2016-02-02T09:40:58Z","body":"But why does it work fine with the global version? Also I can't use TS 1.7 because it has some serious bugs so please don't."}}