{"action":"opened","issue":{"url":"https://api.github.com/repos/systemjs/systemjs/issues/838","labels_url":"https://api.github.com/repos/systemjs/systemjs/issues/838/labels{/name}","comments_url":"https://api.github.com/repos/systemjs/systemjs/issues/838/comments","events_url":"https://api.github.com/repos/systemjs/systemjs/issues/838/events","html_url":"https://github.com/systemjs/systemjs/issues/838","id":110669162,"number":838,"title":"How to map single module and path with same name?","user":{"login":"geirsagberg","id":594564,"avatar_url":"https://avatars.githubusercontent.com/u/594564?v=3","gravatar_id":"","url":"https://api.github.com/users/geirsagberg","html_url":"https://github.com/geirsagberg","followers_url":"https://api.github.com/users/geirsagberg/followers","following_url":"https://api.github.com/users/geirsagberg/following{/other_user}","gists_url":"https://api.github.com/users/geirsagberg/gists{/gist_id}","starred_url":"https://api.github.com/users/geirsagberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geirsagberg/subscriptions","organizations_url":"https://api.github.com/users/geirsagberg/orgs","repos_url":"https://api.github.com/users/geirsagberg/repos","events_url":"https://api.github.com/users/geirsagberg/events{/privacy}","received_events_url":"https://api.github.com/users/geirsagberg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-09T14:23:32Z","updated_at":"2015-10-09T14:23:32Z","closed_at":null,"body":"I am in the process of migrating from RequireJS to SystemJS/jspm, and have a subdirectory named `jquery` with lots of jQuery-plugins:\r\n\r\n    content/shared/js/jquery/jquery.validate.js\r\n    content/shared/js/jquery/jquery.multiselect.js\r\n    ...\r\n\r\nI would like to map `jquery/*` to `content/shared/js/jquery/*`. However, I also have added `jquery` via jspm. Here is my config.js:\r\n\r\n```\r\nSystem.config({\r\n  baseURL: \"/\",\r\n  defaultJSExtensions: true,\r\n  paths: {\r\n    \"npm:*\": \"jspm_packages/npm/*\",\r\n    \"github:*\": \"jspm_packages/github/*\",\r\n    \"jquery/*\": \"content/shared/js/jquery/*\"\r\n  },\r\n\r\n  map: {\r\n    \"jquery\": \"github:components/jquery@2.1.4\",\r\n  }\r\n});\r\n```\r\n\r\nMy code:\r\n\r\n    var $ = require('jquery');\r\n    require('jquery/jquery.multiselect');\r\n    ....\r\n\r\nI would expect `jquery/jquery.multiselect` to be mapped to `content/shared/js/jquery/jquery.multiselect.js`, but instead it is mapped to `/jspm_packages/github/components/jquery@2.1.4/jquery.multiselect.js`. \r\n\r\nHow can I have both a map `\"jquery\": \"github:components/jquery@2.1.4\"` as well as map `jquery/` to a different directory?"}}