{"action":"created","issue":{"url":"https://api.github.com/repos/primus/eventemitter3/issues/47","repository_url":"https://api.github.com/repos/primus/eventemitter3","labels_url":"https://api.github.com/repos/primus/eventemitter3/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/primus/eventemitter3/issues/47/comments","events_url":"https://api.github.com/repos/primus/eventemitter3/issues/47/events","html_url":"https://github.com/primus/eventemitter3/issues/47","id":133828713,"number":47,"title":"confusing state of the npm package compared to package.json","user":{"login":"getify","id":150330,"avatar_url":"https://avatars.githubusercontent.com/u/150330?v=3","gravatar_id":"","url":"https://api.github.com/users/getify","html_url":"https://github.com/getify","followers_url":"https://api.github.com/users/getify/followers","following_url":"https://api.github.com/users/getify/following{/other_user}","gists_url":"https://api.github.com/users/getify/gists{/gist_id}","starred_url":"https://api.github.com/users/getify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getify/subscriptions","organizations_url":"https://api.github.com/users/getify/orgs","repos_url":"https://api.github.com/users/getify/repos","events_url":"https://api.github.com/users/getify/events{/privacy}","received_events_url":"https://api.github.com/users/getify/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-15T22:08:56Z","updated_at":"2016-02-16T03:01:06Z","closed_at":null,"body":"It seems strange/unexpected to me that I can install this package via npm, and even run `npm install` inside it to get all the dev-dependencies, but because `test.js` is [npm ignored](/primus/eventemitter3/issues/15) running the typical `npm test` fails.\r\n\r\nWould you consider perhaps having `npm install` somehow pull down `test.js` (and any other necessary files) from github, or at a minimum throwing a warning that it's missing and that `npm test` will thus not run?\r\n\r\nOr perhaps the `package.json` distributed via npm itself should be stripped of all that non-relevant stuff that the npm package itself will never be able to use?"},"comment":{"url":"https://api.github.com/repos/primus/eventemitter3/issues/comments/184491005","html_url":"https://github.com/primus/eventemitter3/issues/47#issuecomment-184491005","issue_url":"https://api.github.com/repos/primus/eventemitter3/issues/47","id":184491005,"user":{"login":"jcrugzz","id":592149,"avatar_url":"https://avatars.githubusercontent.com/u/592149?v=3","gravatar_id":"","url":"https://api.github.com/users/jcrugzz","html_url":"https://github.com/jcrugzz","followers_url":"https://api.github.com/users/jcrugzz/followers","following_url":"https://api.github.com/users/jcrugzz/following{/other_user}","gists_url":"https://api.github.com/users/jcrugzz/gists{/gist_id}","starred_url":"https://api.github.com/users/jcrugzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcrugzz/subscriptions","organizations_url":"https://api.github.com/users/jcrugzz/orgs","repos_url":"https://api.github.com/users/jcrugzz/repos","events_url":"https://api.github.com/users/jcrugzz/events{/privacy}","received_events_url":"https://api.github.com/users/jcrugzz/received_events","type":"User","site_admin":false},"created_at":"2016-02-16T03:01:06Z","updated_at":"2016-02-16T03:01:06Z","body":"Unfortunately this is just the nature of `npm`. There is no clean way to do this but I'm sure @3rd-Eden is open to suggestions. The idea is for the `npm` installed version to be used and not looked at and if you wanted to run tests and all that jazz you'd clone the repo. This is more convention than prescriptive but thats the background on why the `test.js` would be included, no extra baggage when `npm install`ing an app. "}}