{"action":"created","issue":{"url":"https://api.github.com/repos/rapropos/typed-node-uuid/issues/1","repository_url":"https://api.github.com/repos/rapropos/typed-node-uuid","labels_url":"https://api.github.com/repos/rapropos/typed-node-uuid/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/rapropos/typed-node-uuid/issues/1/comments","events_url":"https://api.github.com/repos/rapropos/typed-node-uuid/issues/1/events","html_url":"https://github.com/rapropos/typed-node-uuid/pull/1","id":135646538,"number":1,"title":"add browser.d.ts","user":{"login":"sshquack","id":5678459,"avatar_url":"https://avatars.githubusercontent.com/u/5678459?v=3","gravatar_id":"","url":"https://api.github.com/users/sshquack","html_url":"https://github.com/sshquack","followers_url":"https://api.github.com/users/sshquack/followers","following_url":"https://api.github.com/users/sshquack/following{/other_user}","gists_url":"https://api.github.com/users/sshquack/gists{/gist_id}","starred_url":"https://api.github.com/users/sshquack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sshquack/subscriptions","organizations_url":"https://api.github.com/users/sshquack/orgs","repos_url":"https://api.github.com/users/sshquack/repos","events_url":"https://api.github.com/users/sshquack/events{/privacy}","received_events_url":"https://api.github.com/users/sshquack/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-02-23T06:12:36Z","updated_at":"2016-02-23T23:42:31Z","closed_at":"2016-02-23T23:31:31Z","pull_request":{"url":"https://api.github.com/repos/rapropos/typed-node-uuid/pulls/1","html_url":"https://github.com/rapropos/typed-node-uuid/pull/1","diff_url":"https://github.com/rapropos/typed-node-uuid/pull/1.diff","patch_url":"https://github.com/rapropos/typed-node-uuid/pull/1.patch"},"body":"Hello @rapropos,\r\n\r\nThank you for creating these typings. I noticed that you removed the `browser.d.ts` in the previous commit probably because it was a duplicate of `node.d.ts`. But it turns out that not having a reference to the `browser` in the `typings.json` causes the `typings` command to assume that the `main` is the `browser`. Here are the actual outputs:\r\n\r\n**Before this PR**:\r\nWithout a `browser` reference in `typings.json`\r\n```\r\n{\r\n  \"name\": \"node-uuid\",\r\n  \"main\": \"node.d.ts\",\r\n  \"dependencies\": {}\r\n}\r\n```\r\nthe output of `typings install ...` looks like the following:\r\n```\r\ntypings\r\n├── [drwxr-xr-x  136]  main/\r\n│   ├── [drwxr-xr-x  272]  ambient/\r\n│   ├── [drwxr-xr-x  272]  definitions/    ## The empty main tree is the problem\r\n├── [drwxr-xr-x  136]  browser/\r\n│   └── [drwxr-xr-x  102]  node-uuid/\r\n│       └── [-rw-r--r-- 1.2K]  node-uuid.d.ts\r\n├── [-rw-r--r--  459]  main.d.ts\r\n└── [-rw-r--r--  254]  tsd.json\r\n```\r\n\r\n**After this PR**: \r\nWith the `browser` reference in `typings.json`\r\n```\r\n{\r\n  \"name\": \"node-uuid\",\r\n  \"main\": \"node.d.ts\",\r\n  \"browser\": \"node.d.ts\",\r\n  \"dependencies\": {}\r\n}\r\n```\r\nthe output of `typings install ...` looks like:\r\n```\r\ntypings\r\n├── [drwxr-xr-x  102]  custom/\r\n│   └── [-rw-r--r--  166]  pool-redis-promise.d.ts\r\n├── [drwxr-xr-x  136]  main/\r\n│   ├── [drwxr-xr-x  272]  ambient/\r\n│   └── [drwxr-xr-x  102]  definitions/    ## Yay!\r\n│       └── [drwxr-xr-x  102]  node-uuid/\r\n│           └── [-rw-r--r-- 1.2K]  node-uuid.d.ts\r\n├── [drwxr-xr-x  136]  browser/\r\n│   └── [drwxr-xr-x  102]  node-uuid/\r\n│       └── [-rw-r--r-- 1.2K]  node-uuid.d.ts\r\n├── [-rw-r--r--  459]  main.d.ts\r\n└── [-rw-r--r--  254]  tsd.json\r\n```\r\n\r\nTo prevent duplicated `.d.ts` we can simply reference both `main` and `browser` to the same `.d.ts` since in our case they are the same. Would like to hear your thoughts on this.\r\n\r\nFor reference:\r\n```\r\n$ typings --version\r\n0.6.8\r\n$ tsc --version\r\nmessage TS6029: Version 1.7.5\r\n```"},"comment":{"url":"https://api.github.com/repos/rapropos/typed-node-uuid/issues/comments/187969797","html_url":"https://github.com/rapropos/typed-node-uuid/pull/1#issuecomment-187969797","issue_url":"https://api.github.com/repos/rapropos/typed-node-uuid/issues/1","id":187969797,"user":{"login":"blakeembrey","id":1088987,"avatar_url":"https://avatars.githubusercontent.com/u/1088987?v=3","gravatar_id":"","url":"https://api.github.com/users/blakeembrey","html_url":"https://github.com/blakeembrey","followers_url":"https://api.github.com/users/blakeembrey/followers","following_url":"https://api.github.com/users/blakeembrey/following{/other_user}","gists_url":"https://api.github.com/users/blakeembrey/gists{/gist_id}","starred_url":"https://api.github.com/users/blakeembrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakeembrey/subscriptions","organizations_url":"https://api.github.com/users/blakeembrey/orgs","repos_url":"https://api.github.com/users/blakeembrey/repos","events_url":"https://api.github.com/users/blakeembrey/events{/privacy}","received_events_url":"https://api.github.com/users/blakeembrey/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T23:42:31Z","updated_at":"2016-02-23T23:42:31Z","body":"@sshquack Definitely should be, that's on me - I got mixed up with https://github.com/defunctzombie/node-uuid when the PR was submitted. @rapropos Feel free to correct that in the registry :+1: "}}