{"action":"created","issue":{"url":"https://api.github.com/repos/EndangeredMassa/npub/issues/24","labels_url":"https://api.github.com/repos/EndangeredMassa/npub/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/EndangeredMassa/npub/issues/24/comments","events_url":"https://api.github.com/repos/EndangeredMassa/npub/issues/24/events","html_url":"https://github.com/EndangeredMassa/npub/issues/24","id":58789983,"number":24,"title":"Reinstall node_modules before publish","user":{"login":"jkrems","id":567540,"avatar_url":"https://avatars.githubusercontent.com/u/567540?v=3","gravatar_id":"","url":"https://api.github.com/users/jkrems","html_url":"https://github.com/jkrems","followers_url":"https://api.github.com/users/jkrems/followers","following_url":"https://api.github.com/users/jkrems/following{/other_user}","gists_url":"https://api.github.com/users/jkrems/gists{/gist_id}","starred_url":"https://api.github.com/users/jkrems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkrems/subscriptions","organizations_url":"https://api.github.com/users/jkrems/orgs","repos_url":"https://api.github.com/users/jkrems/repos","events_url":"https://api.github.com/users/jkrems/events{/privacy}","received_events_url":"https://api.github.com/users/jkrems/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-24T19:21:49Z","updated_at":"2015-02-25T07:09:36Z","closed_at":null,"body":"It would be great if npub would enforce a clean install of `node_modules` at the very beginning (maybe as an opt-in config in package.json?). The installation should use the registry in `publishConfig` by default.\r\n\r\n##### Background\r\n\r\nRight now we have the following in all our `package.json` scripts:\r\n\r\n```\r\n    \"setup\": \"rm -rf node_modules && npm install --registry ${npm_package_publishConfig_registry}\",\r\n    \"release-patch\": \"npm run setup && npub publish patch\",\r\n    \"release-minor\": \"npm run setup && npub publish minor\",\r\n    \"release-major\": \"npm run setup && npub publish major\"\r\n```\r\n\r\nIt would be great if we could switch to just running `npub publish patch` and be done with it. :)"},"comment":{"url":"https://api.github.com/repos/EndangeredMassa/npub/issues/comments/75915587","html_url":"https://github.com/EndangeredMassa/npub/issues/24#issuecomment-75915587","issue_url":"https://api.github.com/repos/EndangeredMassa/npub/issues/24","id":75915587,"user":{"login":"EndangeredMassa","id":41545,"avatar_url":"https://avatars.githubusercontent.com/u/41545?v=3","gravatar_id":"","url":"https://api.github.com/users/EndangeredMassa","html_url":"https://github.com/EndangeredMassa","followers_url":"https://api.github.com/users/EndangeredMassa/followers","following_url":"https://api.github.com/users/EndangeredMassa/following{/other_user}","gists_url":"https://api.github.com/users/EndangeredMassa/gists{/gist_id}","starred_url":"https://api.github.com/users/EndangeredMassa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EndangeredMassa/subscriptions","organizations_url":"https://api.github.com/users/EndangeredMassa/orgs","repos_url":"https://api.github.com/users/EndangeredMassa/repos","events_url":"https://api.github.com/users/EndangeredMassa/events{/privacy}","received_events_url":"https://api.github.com/users/EndangeredMassa/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T07:09:36Z","updated_at":"2015-02-25T07:09:36Z","body":"Sounds good. I'm fine defaulting this behavior and using a config option to turn it off if you want. Maybe `cleanInstallModules` or something."}}