{"action":"created","issue":{"url":"https://api.github.com/repos/JamieMason/shrinkpack/issues/31","repository_url":"https://api.github.com/repos/JamieMason/shrinkpack","labels_url":"https://api.github.com/repos/JamieMason/shrinkpack/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/JamieMason/shrinkpack/issues/31/comments","events_url":"https://api.github.com/repos/JamieMason/shrinkpack/issues/31/events","html_url":"https://github.com/JamieMason/shrinkpack/issues/31","id":148404544,"number":31,"title":"Running npm install against a shrinkpacked project pushes the local file resolution into the npm cache.","user":{"login":"marxian","id":474621,"avatar_url":"https://avatars.githubusercontent.com/u/474621?v=3","gravatar_id":"","url":"https://api.github.com/users/marxian","html_url":"https://github.com/marxian","followers_url":"https://api.github.com/users/marxian/followers","following_url":"https://api.github.com/users/marxian/following{/other_user}","gists_url":"https://api.github.com/users/marxian/gists{/gist_id}","starred_url":"https://api.github.com/users/marxian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marxian/subscriptions","organizations_url":"https://api.github.com/users/marxian/orgs","repos_url":"https://api.github.com/users/marxian/repos","events_url":"https://api.github.com/users/marxian/events{/privacy}","received_events_url":"https://api.github.com/users/marxian/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JamieMason/shrinkpack/labels/Priority:%20High","name":"Priority: High","color":"eb6420"},{"url":"https://api.github.com/repos/JamieMason/shrinkpack/labels/Status:%20Accepted","name":"Status: Accepted","color":"009800"},{"url":"https://api.github.com/repos/JamieMason/shrinkpack/labels/Type:%20Bug","name":"Type: Bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2016-04-14T15:51:11Z","updated_at":"2016-05-10T11:26:09Z","closed_at":null,"body":"#### Expected behaviour\r\nIt should be possible to rerun shrinkpack if new dependencies have been added to an npm-shrinkwrap file.\r\n...\r\n\r\n#### Actual behaviour\r\nshrinkpack detects that some of the dependencies resolve to tarballs in npm_shrinkwrap/ and exits explaining that it has nothing to do.\r\n\r\nI think this is the commit containing the faulty logic: https://github.com/JamieMason/shrinkpack/commit/409062cfb7b3ac53a7357de3a1e53bb116b9f054\r\n...\r\n\r\n#### Steps to reproduce\r\nshrinkpack a project\r\nadd a new dependency\r\ntry to shrinkpack it again\r\n...\r\n\r\n#### Software versions used\r\n\r\n```\r\nOS         :  Linux\r\nnode.js    :  v4.2.4\r\nnpm        :  v3.8.6\r\nshrinkpack : 0.10.0\r\n```\r\n\r\n#### Log output when running shrinkpack\r\n! npm-shrinkwrap.json is already shrinkpacked, update it using `npm shrinkwrap --dev` then try again\r\n\r\n#### Contents of your npm-shrinkwrap.json or package.json\r\nN/A\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/JamieMason/shrinkpack/issues/comments/218130383","html_url":"https://github.com/JamieMason/shrinkpack/issues/31#issuecomment-218130383","issue_url":"https://api.github.com/repos/JamieMason/shrinkpack/issues/31","id":218130383,"user":{"login":"JamieMason","id":320492,"avatar_url":"https://avatars.githubusercontent.com/u/320492?v=3","gravatar_id":"","url":"https://api.github.com/users/JamieMason","html_url":"https://github.com/JamieMason","followers_url":"https://api.github.com/users/JamieMason/followers","following_url":"https://api.github.com/users/JamieMason/following{/other_user}","gists_url":"https://api.github.com/users/JamieMason/gists{/gist_id}","starred_url":"https://api.github.com/users/JamieMason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamieMason/subscriptions","organizations_url":"https://api.github.com/users/JamieMason/orgs","repos_url":"https://api.github.com/users/JamieMason/repos","events_url":"https://api.github.com/users/JamieMason/events{/privacy}","received_events_url":"https://api.github.com/users/JamieMason/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T11:26:09Z","updated_at":"2016-05-10T11:26:09Z","body":"Thanks @marxian, @lime – I've been on holiday but will pick this up again soon."}}