{"action":"created","issue":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/699","labels_url":"https://api.github.com/repos/jspm/jspm-cli/issues/699/labels{/name}","comments_url":"https://api.github.com/repos/jspm/jspm-cli/issues/699/comments","events_url":"https://api.github.com/repos/jspm/jspm-cli/issues/699/events","html_url":"https://github.com/jspm/jspm-cli/issues/699","id":69795990,"number":699,"title":"Wrong interpretation of \"directories\" in package.json","user":{"login":"smehrbrodt","id":3502738,"avatar_url":"https://avatars.githubusercontent.com/u/3502738?v=3","gravatar_id":"","url":"https://api.github.com/users/smehrbrodt","html_url":"https://github.com/smehrbrodt","followers_url":"https://api.github.com/users/smehrbrodt/followers","following_url":"https://api.github.com/users/smehrbrodt/following{/other_user}","gists_url":"https://api.github.com/users/smehrbrodt/gists{/gist_id}","starred_url":"https://api.github.com/users/smehrbrodt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smehrbrodt/subscriptions","organizations_url":"https://api.github.com/users/smehrbrodt/orgs","repos_url":"https://api.github.com/users/smehrbrodt/repos","events_url":"https://api.github.com/users/smehrbrodt/events{/privacy}","received_events_url":"https://api.github.com/users/smehrbrodt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jspm/jspm-cli/labels/support","name":"support","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-04-21T09:33:38Z","updated_at":"2015-04-21T11:56:25Z","closed_at":"2015-04-21T11:15:24Z","body":"I tried to install CodeMirror with JSPM: `jspm install github:codemirror/CodeMirror`\r\nThis downloads only the \"lib/\" folder, all other folders are missing. When you remove the [directories property](https://github.com/codemirror/CodeMirror/blob/master/package.json#L8), it works perfectly.\r\n\r\nThis is not the expected behavior. `npm install codemirror` downloads the whole repository. The `directories` section should not limit the files which are downloaded."},"comment":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/comments/94760174","html_url":"https://github.com/jspm/jspm-cli/issues/699#issuecomment-94760174","issue_url":"https://api.github.com/repos/jspm/jspm-cli/issues/699","id":94760174,"user":{"login":"smehrbrodt","id":3502738,"avatar_url":"https://avatars.githubusercontent.com/u/3502738?v=3","gravatar_id":"","url":"https://api.github.com/users/smehrbrodt","html_url":"https://github.com/smehrbrodt","followers_url":"https://api.github.com/users/smehrbrodt/followers","following_url":"https://api.github.com/users/smehrbrodt/following{/other_user}","gists_url":"https://api.github.com/users/smehrbrodt/gists{/gist_id}","starred_url":"https://api.github.com/users/smehrbrodt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smehrbrodt/subscriptions","organizations_url":"https://api.github.com/users/smehrbrodt/orgs","repos_url":"https://api.github.com/users/smehrbrodt/repos","events_url":"https://api.github.com/users/smehrbrodt/events{/privacy}","received_events_url":"https://api.github.com/users/smehrbrodt/received_events","type":"User","site_admin":false},"created_at":"2015-04-21T11:56:25Z","updated_at":"2015-04-21T11:56:25Z","body":"How can I override the `directories.lib` value then?\r\n\r\nThis doesn't work:\r\n\r\n```json\r\n      \"npm:codemirror@5.2.0\": {\r\n        \"registry\": \"jspm\",\r\n        \"directories\": {\r\n          \"lib\": \".\"\r\n        },\r\n        \"shim\": {\r\n          \"lib/codemirror.js\": {\r\n            \"exports\": \"CodeMirror\"\r\n          }\r\n        }\r\n      },\r\n```"}}