{"action":"created","issue":{"url":"https://api.github.com/repos/brainsiq/hapi-boom-decorators/issues/40","repository_url":"https://api.github.com/repos/brainsiq/hapi-boom-decorators","labels_url":"https://api.github.com/repos/brainsiq/hapi-boom-decorators/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/brainsiq/hapi-boom-decorators/issues/40/comments","events_url":"https://api.github.com/repos/brainsiq/hapi-boom-decorators/issues/40/events","html_url":"https://github.com/brainsiq/hapi-boom-decorators/issues/40","id":193367601,"number":40,"title":"Shrinkwrap and size of dependencies","user":{"login":"millette","id":50741,"avatar_url":"https://avatars.githubusercontent.com/u/50741?v=3","gravatar_id":"","url":"https://api.github.com/users/millette","html_url":"https://github.com/millette","followers_url":"https://api.github.com/users/millette/followers","following_url":"https://api.github.com/users/millette/following{/other_user}","gists_url":"https://api.github.com/users/millette/gists{/gist_id}","starred_url":"https://api.github.com/users/millette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/millette/subscriptions","organizations_url":"https://api.github.com/users/millette/orgs","repos_url":"https://api.github.com/users/millette/repos","events_url":"https://api.github.com/users/millette/events{/privacy}","received_events_url":"https://api.github.com/users/millette/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-12-04T18:51:59Z","updated_at":"2016-12-04T21:29:05Z","closed_at":null,"body":"I just used <https://github.com/siddharthkp/cost-of-modules> on my module, which depends on hapi-boom-decorators to determine why mine seemd so big. I though it was nano (ha, there's an ironic name ;-) but turns out your modules and children take up 70 MiB!\r\n\r\n```\r\n$ cd hapi-couchdb-login/\r\n$ cost-of-modules\r\n┌──────────────────────┬──────────────┬────────┐\r\n│ name                 │ children     │ size   │\r\n├──────────────────────┼──────────────┼────────┤\r\n│ hapi-boom-decorators │ 59           │ 70.91M │\r\n├──────────────────────┼──────────────┼────────┤\r\n│ cloudant-nano        │ 99           │ 12.53M │\r\n├──────────────────────┼──────────────┼────────┤\r\n│ lodash               │ 0            │ 4.88M  │\r\n├──────────────────────┼──────────────┼────────┤\r\n│ hapi-auth-cookie     │ 8            │ 4.80M  │\r\n├──────────────────────┼──────────────┼────────┤\r\n│ boom                 │ 1            │ 0.31M  │\r\n├──────────────────────┼──────────────┼────────┤\r\n│ pify                 │ 0            │ 0.02M  │\r\n├──────────────────────┼──────────────┼────────┤\r\n│ 6 modules            │ 103 children │ 84.72M │\r\n└──────────────────────┴──────────────┴────────┘\r\n```\r\n\r\nI'm not sure how shrinkwrap works, but I found this version from 2.0.1:\r\n<https://github.com/brainsiq/hapi-boom-decorators/blob/beb86e10918e2a031e365322987c9d2089acb1d6/npm-shrinkwrap.json>\r\nwhich is tiny compared to most other versions containing babel stuff and much more.\r\n\r\nAm I imagining things, or could we shave of 65 MiB of dependencies here?\r\n"},"comment":{"url":"https://api.github.com/repos/brainsiq/hapi-boom-decorators/issues/comments/264732810","html_url":"https://github.com/brainsiq/hapi-boom-decorators/issues/40#issuecomment-264732810","issue_url":"https://api.github.com/repos/brainsiq/hapi-boom-decorators/issues/40","id":264732810,"user":{"login":"brainsiq","id":287530,"avatar_url":"https://avatars.githubusercontent.com/u/287530?v=3","gravatar_id":"","url":"https://api.github.com/users/brainsiq","html_url":"https://github.com/brainsiq","followers_url":"https://api.github.com/users/brainsiq/followers","following_url":"https://api.github.com/users/brainsiq/following{/other_user}","gists_url":"https://api.github.com/users/brainsiq/gists{/gist_id}","starred_url":"https://api.github.com/users/brainsiq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brainsiq/subscriptions","organizations_url":"https://api.github.com/users/brainsiq/orgs","repos_url":"https://api.github.com/users/brainsiq/repos","events_url":"https://api.github.com/users/brainsiq/events{/privacy}","received_events_url":"https://api.github.com/users/brainsiq/received_events","type":"User","site_admin":false},"created_at":"2016-12-04T21:29:05Z","updated_at":"2016-12-04T21:29:05Z","body":"I get something that looks completely different if I install hapi and hapi-boom-decorators into a new project:\r\n\r\n┌──────────────────────┬─────────────┬────────┐\r\n│ name                 │ children    │ size   │\r\n├──────────────────────┼─────────────┼────────┤\r\n│ hapi-boom-decorators │ 2           │ 23.06M │\r\n├──────────────────────┼─────────────┼────────┤\r\n│ hapi                 │ 26          │ 1.56M  │\r\n├──────────────────────┼─────────────┼────────┤\r\n│ 2 modules            │ 26 children │ 24.62M │\r\n└──────────────────────┴─────────────┴────────┘"}}
{"actor":{"display_login":"brainsiq"}}