{"action":"created","issue":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/1986","repository_url":"https://api.github.com/repos/jspm/jspm-cli","labels_url":"https://api.github.com/repos/jspm/jspm-cli/issues/1986/labels{/name}","comments_url":"https://api.github.com/repos/jspm/jspm-cli/issues/1986/comments","events_url":"https://api.github.com/repos/jspm/jspm-cli/issues/1986/events","html_url":"https://github.com/jspm/jspm-cli/issues/1986","id":166067629,"number":1986,"title":"Stop JSPM from rewriting paths","user":{"login":"Bolza","id":1849043,"avatar_url":"https://avatars.githubusercontent.com/u/1849043?v=3","gravatar_id":"","url":"https://api.github.com/users/Bolza","html_url":"https://github.com/Bolza","followers_url":"https://api.github.com/users/Bolza/followers","following_url":"https://api.github.com/users/Bolza/following{/other_user}","gists_url":"https://api.github.com/users/Bolza/gists{/gist_id}","starred_url":"https://api.github.com/users/Bolza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bolza/subscriptions","organizations_url":"https://api.github.com/users/Bolza/orgs","repos_url":"https://api.github.com/users/Bolza/repos","events_url":"https://api.github.com/users/Bolza/events{/privacy}","received_events_url":"https://api.github.com/users/Bolza/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-18T10:53:54Z","updated_at":"2016-08-21T15:21:06Z","closed_at":"2016-08-21T15:21:06Z","body":"I have this kind of structure:\r\n\r\n```\r\napp/\r\n├── public/\r\n│   ├── jspm_packages\r\n│   ├── config.js\r\n```\r\n\r\nAnd i need config.js to look like this\r\n\r\n```\r\n  paths: {\r\n    \"github:*\": \"jspm_packages/github/*\",\r\n    \"npm:*\": \"jspm_packages/npm/*\"\r\n    [...]\r\n  },\r\n```\r\n\r\nSo i set `package.json` in this way\r\n\r\n```\r\n    \"directories\": {\r\n      \"packages\": \"public/jspm_packages\"\r\n    },\r\n    \"configFile\": \"public/config.js\",\r\n```\r\n\r\nAfter `jspm init` i get `config.js` re-written i this way\r\n\r\n```\r\n  baseURL: \"public\",\r\n  paths: {\r\n    \"github:*\": \"public/jspm_packages/github/*\",\r\n    \"npm:*\": \"public/jspm_packages/npm/*\"\r\n    [...]\r\n  },\r\n```\r\n\r\nWhich is absolutely wrong as `public` is my served folder and the file path must not start with it.\r\nI find the fact that setting `directories.packages` in package.json rewrites `paths` in config.js confusing and limitating. We should cut down on all this \"magic\" and just rely on the user to setup his own configuration.\r\n"},"comment":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/comments/241263632","html_url":"https://github.com/jspm/jspm-cli/issues/1986#issuecomment-241263632","issue_url":"https://api.github.com/repos/jspm/jspm-cli/issues/1986","id":241263632,"user":{"login":"guybedford","id":598730,"avatar_url":"https://avatars.githubusercontent.com/u/598730?v=3","gravatar_id":"","url":"https://api.github.com/users/guybedford","html_url":"https://github.com/guybedford","followers_url":"https://api.github.com/users/guybedford/followers","following_url":"https://api.github.com/users/guybedford/following{/other_user}","gists_url":"https://api.github.com/users/guybedford/gists{/gist_id}","starred_url":"https://api.github.com/users/guybedford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guybedford/subscriptions","organizations_url":"https://api.github.com/users/guybedford/orgs","repos_url":"https://api.github.com/users/guybedford/repos","events_url":"https://api.github.com/users/guybedford/events{/privacy}","received_events_url":"https://api.github.com/users/guybedford/received_events","type":"User","site_admin":false},"created_at":"2016-08-21T15:21:06Z","updated_at":"2016-08-21T15:21:06Z","body":"jspm 0.17 goes through more effort not to alter user-set paths."}}
{"actor":{"display_login":"guybedford"}}