{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/7501","labels_url":"https://api.github.com/repos/npm/npm/issues/7501/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/7501/comments","events_url":"https://api.github.com/repos/npm/npm/issues/7501/events","html_url":"https://github.com/npm/npm/issues/7501","id":59355574,"number":7501,"title":"`files` is ignored with tarball dependency","user":{"login":"silverwind","id":115237,"avatar_url":"https://avatars.githubusercontent.com/u/115237?v=3","gravatar_id":"","url":"https://api.github.com/users/silverwind","html_url":"https://github.com/silverwind","followers_url":"https://api.github.com/users/silverwind/followers","following_url":"https://api.github.com/users/silverwind/following{/other_user}","gists_url":"https://api.github.com/users/silverwind/gists{/gist_id}","starred_url":"https://api.github.com/users/silverwind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silverwind/subscriptions","organizations_url":"https://api.github.com/users/silverwind/orgs","repos_url":"https://api.github.com/users/silverwind/repos","events_url":"https://api.github.com/users/silverwind/events{/privacy}","received_events_url":"https://api.github.com/users/silverwind/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-28T19:57:05Z","updated_at":"2015-03-01T02:17:37Z","closed_at":null,"body":"Defining a dependency like\r\n````js\r\n   \"vtt.js\": \"git+https://github.com/gkatsev/vtt.js.git#shim-build\"\r\n````\r\ndoes result in a stripped down dependency installation on `npm install` (according to dependency's `files`), while\r\n\r\n````js\r\n \"vtt.js\": \"https://github.com/gkatsev/vtt.js/archive/shim-build.tar.gz\"\r\n````\r\ndoes not seem to remove any extra files. ref: https://github.com/videojs/video.js/pull/1911"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/76564035","html_url":"https://github.com/npm/npm/issues/7501#issuecomment-76564035","issue_url":"https://api.github.com/repos/npm/npm/issues/7501","id":76564035,"user":{"login":"silverwind","id":115237,"avatar_url":"https://avatars.githubusercontent.com/u/115237?v=3","gravatar_id":"","url":"https://api.github.com/users/silverwind","html_url":"https://github.com/silverwind","followers_url":"https://api.github.com/users/silverwind/followers","following_url":"https://api.github.com/users/silverwind/following{/other_user}","gists_url":"https://api.github.com/users/silverwind/gists{/gist_id}","starred_url":"https://api.github.com/users/silverwind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silverwind/subscriptions","organizations_url":"https://api.github.com/users/silverwind/orgs","repos_url":"https://api.github.com/users/silverwind/repos","events_url":"https://api.github.com/users/silverwind/events{/privacy}","received_events_url":"https://api.github.com/users/silverwind/received_events","type":"User","site_admin":false},"created_at":"2015-03-01T02:17:37Z","updated_at":"2015-03-01T02:17:37Z","body":"Makes sense. The `pack` step after `clone` in the git case seems a bit unnecessary to me though.\r\n\r\nThe files are already there in unpacked form, and could probably just be copied to the installation directory after the cleanup step, saving a few CPU cycles if this step could be decoupled from `pack`, and be applied after `clone` (git case) / `get` (tarball case)."}}