{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/5082","labels_url":"https://api.github.com/repos/npm/npm/issues/5082/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/5082/comments","events_url":"https://api.github.com/repos/npm/npm/issues/5082/events","html_url":"https://github.com/npm/npm/issues/5082","id":31581106,"number":5082,"title":"npm publish missing index.js","user":{"login":"pgilad","id":4533329,"avatar_url":"https://avatars.githubusercontent.com/u/4533329?v=3","gravatar_id":"","url":"https://api.github.com/users/pgilad","html_url":"https://github.com/pgilad","followers_url":"https://api.github.com/users/pgilad/followers","following_url":"https://api.github.com/users/pgilad/following{/other_user}","gists_url":"https://api.github.com/users/pgilad/gists{/gist_id}","starred_url":"https://api.github.com/users/pgilad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgilad/subscriptions","organizations_url":"https://api.github.com/users/pgilad/orgs","repos_url":"https://api.github.com/users/pgilad/repos","events_url":"https://api.github.com/users/pgilad/events{/privacy}","received_events_url":"https://api.github.com/users/pgilad/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/npm/npm/labels/bug","name":"bug","color":"C40233"},{"url":"https://api.github.com/repos/npm/npm/labels/in%20progress","name":"in progress","color":"ffbb00"},{"url":"https://api.github.com/repos/npm/npm/labels/next-patch","name":"next-patch","color":"00FFFF"},{"url":"https://api.github.com/repos/npm/npm/labels/repro-please","name":"repro-please","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":46,"created_at":"2014-04-15T19:02:08Z","updated_at":"2015-04-23T20:18:39Z","closed_at":null,"body":"Happened to me twice already, while publishing a package I wrote (https://github.com/pgilad/gulp-angular-htmlify if it matters), the package was published without `index.js`.\r\n\r\nI had no notice or info that anything went wrong during `npm publish` phase. But then got notified by a user that the package wasn't installing with `index.js`.\r\n\r\nThe only thing that I can think of that caused this, other than a bug, is that I had the project open in Vim, that may have caused a failure to publish the file.\r\n\r\nDid anyone run into a similar case? Is there anyway to verify the package contents other than installing it as a dependency and seeing what's installed?\r\n\r\nThis happened with:\r\ngit version 1.8.3.2\r\nnpm version 1.4.6\r\nnode version 0.10.26\r\nubuntu 13.10"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/95707549","html_url":"https://github.com/npm/npm/issues/5082#issuecomment-95707549","issue_url":"https://api.github.com/repos/npm/npm/issues/5082","id":95707549,"user":{"login":"sbull","id":1115369,"avatar_url":"https://avatars.githubusercontent.com/u/1115369?v=3","gravatar_id":"","url":"https://api.github.com/users/sbull","html_url":"https://github.com/sbull","followers_url":"https://api.github.com/users/sbull/followers","following_url":"https://api.github.com/users/sbull/following{/other_user}","gists_url":"https://api.github.com/users/sbull/gists{/gist_id}","starred_url":"https://api.github.com/users/sbull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbull/subscriptions","organizations_url":"https://api.github.com/users/sbull/orgs","repos_url":"https://api.github.com/users/sbull/repos","events_url":"https://api.github.com/users/sbull/events{/privacy}","received_events_url":"https://api.github.com/users/sbull/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T20:18:39Z","updated_at":"2015-04-23T20:18:39Z","body":"FWIW, I'm using a script that does `npm pack` manually, then uses `git` tools to prepare a list of files that should be in the tarball, and complains if there are discrepancies. It's been working fine for me for a few months. Available here: https://github.com/sbull/sbull-bin/blob/master/npm-publish-safely"}}