{"action":"created","issue":{"url":"https://api.github.com/repos/pouchdb/pouchdb/issues/4460","labels_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/4460/labels{/name}","comments_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/4460/comments","events_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/4460/events","html_url":"https://github.com/pouchdb/pouchdb/issues/4460","id":110935137,"number":4460,"title":"JSPM - package.json main point to dist","user":{"login":"stephenlautier","id":3908723,"avatar_url":"https://avatars.githubusercontent.com/u/3908723?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenlautier","html_url":"https://github.com/stephenlautier","followers_url":"https://api.github.com/users/stephenlautier/followers","following_url":"https://api.github.com/users/stephenlautier/following{/other_user}","gists_url":"https://api.github.com/users/stephenlautier/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenlautier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenlautier/subscriptions","organizations_url":"https://api.github.com/users/stephenlautier/orgs","repos_url":"https://api.github.com/users/stephenlautier/repos","events_url":"https://api.github.com/users/stephenlautier/events{/privacy}","received_events_url":"https://api.github.com/users/stephenlautier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-12T09:08:40Z","updated_at":"2015-10-12T13:02:10Z","closed_at":null,"body":"Hi\r\n\r\nI've installed this library using JSPM, and currently the `package.json` `main:` is set to `\"./lib/index.js\"` \r\n\r\nCan it be changed as the `bower.json` instead to point correctly to the dist e.g. `\"main\": \"dist/pouchdb.js\",`?\r\n\r\nAs otherwise it fails to loads the dependencies, unless I'm doing something wrong; However by simply changing to the dist its working correctly.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/pouchdb/pouchdb/issues/comments/147391966","html_url":"https://github.com/pouchdb/pouchdb/issues/4460#issuecomment-147391966","issue_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/4460","id":147391966,"user":{"login":"nolanlawson","id":283842,"avatar_url":"https://avatars.githubusercontent.com/u/283842?v=3","gravatar_id":"","url":"https://api.github.com/users/nolanlawson","html_url":"https://github.com/nolanlawson","followers_url":"https://api.github.com/users/nolanlawson/followers","following_url":"https://api.github.com/users/nolanlawson/following{/other_user}","gists_url":"https://api.github.com/users/nolanlawson/gists{/gist_id}","starred_url":"https://api.github.com/users/nolanlawson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nolanlawson/subscriptions","organizations_url":"https://api.github.com/users/nolanlawson/orgs","repos_url":"https://api.github.com/users/nolanlawson/repos","events_url":"https://api.github.com/users/nolanlawson/events{/privacy}","received_events_url":"https://api.github.com/users/nolanlawson/received_events","type":"User","site_admin":false},"created_at":"2015-10-12T13:02:10Z","updated_at":"2015-10-12T13:02:10Z","body":"Yup, exactly, it would break for npm/node users. We have Bower support, which users a bower.json file that has its main pointing to `\"dist/pouchdb.js\"`. Maybe there is a similar thing for JSPM?"}}