{"action":"closed","issue":{"url":"https://api.github.com/repos/dart-lang/pub/issues/849","labels_url":"https://api.github.com/repos/dart-lang/pub/issues/849/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/pub/issues/849/comments","events_url":"https://api.github.com/repos/dart-lang/pub/issues/849/events","html_url":"https://github.com/dart-lang/pub/issues/849","id":85644971,"number":849,"title":"pub build doesn't special-case the `browser` package when it is in `dev_dependencies`","user":{"login":"DartBot","id":8958862,"avatar_url":"https://avatars.githubusercontent.com/u/8958862?v=3","gravatar_id":"","url":"https://api.github.com/users/DartBot","html_url":"https://github.com/DartBot","followers_url":"https://api.github.com/users/DartBot/followers","following_url":"https://api.github.com/users/DartBot/following{/other_user}","gists_url":"https://api.github.com/users/DartBot/gists{/gist_id}","starred_url":"https://api.github.com/users/DartBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DartBot/subscriptions","organizations_url":"https://api.github.com/users/DartBot/orgs","repos_url":"https://api.github.com/users/DartBot/repos","events_url":"https://api.github.com/users/DartBot/events{/privacy}","received_events_url":"https://api.github.com/users/DartBot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/pub/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/dart-lang/pub/labels/Fixed","name":"Fixed","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"munificent","id":46275,"avatar_url":"https://avatars.githubusercontent.com/u/46275?v=3","gravatar_id":"","url":"https://api.github.com/users/munificent","html_url":"https://github.com/munificent","followers_url":"https://api.github.com/users/munificent/followers","following_url":"https://api.github.com/users/munificent/following{/other_user}","gists_url":"https://api.github.com/users/munificent/gists{/gist_id}","starred_url":"https://api.github.com/users/munificent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/munificent/subscriptions","organizations_url":"https://api.github.com/users/munificent/orgs","repos_url":"https://api.github.com/users/munificent/repos","events_url":"https://api.github.com/users/munificent/events{/privacy}","received_events_url":"https://api.github.com/users/munificent/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-06-05T22:16:16Z","updated_at":"2015-06-05T22:16:17Z","closed_at":"2015-06-05T22:16:17Z","body":"_Originally opened as dart-lang/sdk#16617_\n\n*This issue was originally filed by dev...&#064;futureperfect.info*\n_____\n1.2.0.edge_032404\nWindows7x64\n\npubspec.yaml\n\n-------------\n\nname: bug\ndev_dependencies:\n&nbsp;&nbsp;browser: '&gt;=0.9.0'\n\nexample/test.dart\n\n-----------------\n\nlibrary bug.example;\nimport 'dart:html';\nmain() {\n&nbsp;&nbsp;document.body.append(new SpanElement()..text = 'Hello');\n}\n\nexample/test.html\n\n-----------------\n\n&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&nbsp;&nbsp;&lt;head&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;title&gt;Test&lt;/title&gt;\n&nbsp;&nbsp;&lt;/head&gt;\n&nbsp;&nbsp;&lt;body&gt;    \n&nbsp;&nbsp;&nbsp;&nbsp;&lt;script type=&quot;application/dart&quot; src=&quot;test.dart&quot;&gt;&lt;/script&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;script src=&quot;packages/browser/dart.js&quot;&gt;&lt;/script&gt;\n&nbsp;&nbsp;&lt;/body&gt;\n&lt;/html&gt;\n\ncmd&gt; pub build example\n\nNotice there is no packages/dart.js or interop.js\n\nChange the pubspec from `dev_dependencies` to `dependencies` et voila.\n\nFor a library package that has `test/` and `example/` but no application, it should be recommended to have `browser` in `dev_dependencies` to avoid unnecessary constraints on the consumer of the package, so I believe this needs to be fixed in order for `pub build test` and `pub build example` to be useful.\n\nthanks\n\n"}}