{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/443","labels_url":"https://api.github.com/repos/angular/angular/issues/443/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/443/comments","events_url":"https://api.github.com/repos/angular/angular/issues/443/events","html_url":"https://github.com/angular/angular/issues/443","id":54655659,"number":443,"title":"Broken npm/bower packages","user":{"login":"josip","id":11433,"avatar_url":"https://avatars.githubusercontent.com/u/11433?v=3","gravatar_id":"","url":"https://api.github.com/users/josip","html_url":"https://github.com/josip","followers_url":"https://api.github.com/users/josip/followers","following_url":"https://api.github.com/users/josip/following{/other_user}","gists_url":"https://api.github.com/users/josip/gists{/gist_id}","starred_url":"https://api.github.com/users/josip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josip/subscriptions","organizations_url":"https://api.github.com/users/josip/orgs","repos_url":"https://api.github.com/users/josip/repos","events_url":"https://api.github.com/users/josip/events{/privacy}","received_events_url":"https://api.github.com/users/josip/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-17T08:39:35Z","updated_at":"2015-01-17T08:40:38Z","closed_at":"2015-01-17T08:40:38Z","body":"`index.js` file in all of `bower-angular-*` repositories has a syntax error:\r\n\r\n```javascript\r\nrequire('./angular-sanitize');\r\n\r\nmodule.exports = angular-sanitize;\r\n```\r\n[(link)](https://github.com/angular/bower-angular-sanitize/blob/master/index.js)\r\n\r\nWhich makes it a bit more complicated to use them with browserify. I couldn't find the script that's used to generate those repos, but the fix would be as simple as rewriting the file to:\r\n\r\n```javascript\r\nmodule.exports = require('./angular-sanitize');\r\n```\r\n\r\nAnother option would be to add `\"main\":\"angular-sanitize.js\"` to `package.json` [(spec)](https://docs.npmjs.com/files/package.json#main) and not have an `index.js` file at all (as it's already done in `bower.json`).\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/70359555","html_url":"https://github.com/angular/angular/issues/443#issuecomment-70359555","issue_url":"https://api.github.com/repos/angular/angular/issues/443","id":70359555,"user":{"login":"pkozlowski-opensource","id":973550,"avatar_url":"https://avatars.githubusercontent.com/u/973550?v=3","gravatar_id":"","url":"https://api.github.com/users/pkozlowski-opensource","html_url":"https://github.com/pkozlowski-opensource","followers_url":"https://api.github.com/users/pkozlowski-opensource/followers","following_url":"https://api.github.com/users/pkozlowski-opensource/following{/other_user}","gists_url":"https://api.github.com/users/pkozlowski-opensource/gists{/gist_id}","starred_url":"https://api.github.com/users/pkozlowski-opensource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkozlowski-opensource/subscriptions","organizations_url":"https://api.github.com/users/pkozlowski-opensource/orgs","repos_url":"https://api.github.com/users/pkozlowski-opensource/repos","events_url":"https://api.github.com/users/pkozlowski-opensource/events{/privacy}","received_events_url":"https://api.github.com/users/pkozlowski-opensource/received_events","type":"User","site_admin":false},"created_at":"2015-01-17T08:40:38Z","updated_at":"2015-01-17T08:40:38Z","body":"This is wrong repo and duplicate of https://github.com/angular/angular.js/issues/10785"}}