{"action":"created","issue":{"url":"https://api.github.com/repos/systemjs/systemjs/issues/731","labels_url":"https://api.github.com/repos/systemjs/systemjs/issues/731/labels{/name}","comments_url":"https://api.github.com/repos/systemjs/systemjs/issues/731/comments","events_url":"https://api.github.com/repos/systemjs/systemjs/issues/731/events","html_url":"https://github.com/systemjs/systemjs/issues/731","id":103371252,"number":731,"title":"specifying main in package.json handled differently than if specified in config.js","user":{"login":"chrisdostert","id":2335774,"avatar_url":"https://avatars.githubusercontent.com/u/2335774?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisdostert","html_url":"https://github.com/chrisdostert","followers_url":"https://api.github.com/users/chrisdostert/followers","following_url":"https://api.github.com/users/chrisdostert/following{/other_user}","gists_url":"https://api.github.com/users/chrisdostert/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisdostert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisdostert/subscriptions","organizations_url":"https://api.github.com/users/chrisdostert/orgs","repos_url":"https://api.github.com/users/chrisdostert/repos","events_url":"https://api.github.com/users/chrisdostert/events{/privacy}","received_events_url":"https://api.github.com/users/chrisdostert/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-26T21:48:52Z","updated_at":"2015-08-27T04:10:03Z","closed_at":"2015-08-27T04:10:03Z","body":"#### Broken (jspm install results in \"warn Main entry point not found for ...\")\r\nconfig.js\r\n```js\r\nSystem.config({\r\n  defaultJSExtensions: true,\r\n  transpiler: \"typescript\",\r\n  packages: {\r\n    \"src\": {\r\n      \"main\": \"index\",\r\n      \"defaultExtension\": \"ts\"\r\n    }\r\n    ... \r\n  },\r\n});\r\n```\r\npackage.json\r\n```js\r\n{\r\n  \"jspm\": {\r\n    \"main\":\"main\"\r\n    \"directories\": {\r\n      \"lib\": \"src\"\r\n    }\r\n    ...\r\n  }\r\n}\r\n```\r\n\r\n#### Working\r\nconfig.js\r\n```js\r\nSystem.config({\r\n  defaultJSExtensions: true,\r\n  transpiler: \"typescript\",\r\n  packages: {\r\n    \"src\": {\r\n      \"main\": \"index\",\r\n      \"defaultExtension\": \"ts\"\r\n    }\r\n    ... \r\n  },\r\n});\r\n```\r\npackage.json\r\n```js\r\n{\r\n  \"jspm\": {\r\n    \"directories\": {\r\n      \"lib\": \"src\"\r\n    }\r\n    ...\r\n  }\r\n}\r\n```\r\n\r\nbasically it looks like if main is specified in package.json, any packages options from config.js will not be observed for it. "},"comment":{"url":"https://api.github.com/repos/systemjs/systemjs/issues/comments/135285595","html_url":"https://github.com/systemjs/systemjs/issues/731#issuecomment-135285595","issue_url":"https://api.github.com/repos/systemjs/systemjs/issues/731","id":135285595,"user":{"login":"chrisdostert","id":2335774,"avatar_url":"https://avatars.githubusercontent.com/u/2335774?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisdostert","html_url":"https://github.com/chrisdostert","followers_url":"https://api.github.com/users/chrisdostert/followers","following_url":"https://api.github.com/users/chrisdostert/following{/other_user}","gists_url":"https://api.github.com/users/chrisdostert/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisdostert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisdostert/subscriptions","organizations_url":"https://api.github.com/users/chrisdostert/orgs","repos_url":"https://api.github.com/users/chrisdostert/repos","events_url":"https://api.github.com/users/chrisdostert/events{/privacy}","received_events_url":"https://api.github.com/users/chrisdostert/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T04:10:03Z","updated_at":"2015-08-27T04:10:03Z","body":"closing as it looks like this is basically the underlying reason jspm/jspm-cli#1048"}}