{"action":"created","issue":{"url":"https://api.github.com/repos/toji/gl-matrix/issues/343","repository_url":"https://api.github.com/repos/toji/gl-matrix","labels_url":"https://api.github.com/repos/toji/gl-matrix/issues/343/labels{/name}","comments_url":"https://api.github.com/repos/toji/gl-matrix/issues/343/comments","events_url":"https://api.github.com/repos/toji/gl-matrix/issues/343/events","html_url":"https://github.com/toji/gl-matrix/pull/343","id":379545448,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5OTY2Njgy","number":343,"title":"Add routes to simplify cherry picking","user":{"login":"TrySound","id":5635476,"node_id":"MDQ6VXNlcjU2MzU0NzY=","avatar_url":"https://avatars0.githubusercontent.com/u/5635476?v=4","gravatar_id":"","url":"https://api.github.com/users/TrySound","html_url":"https://github.com/TrySound","followers_url":"https://api.github.com/users/TrySound/followers","following_url":"https://api.github.com/users/TrySound/following{/other_user}","gists_url":"https://api.github.com/users/TrySound/gists{/gist_id}","starred_url":"https://api.github.com/users/TrySound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrySound/subscriptions","organizations_url":"https://api.github.com/users/TrySound/orgs","repos_url":"https://api.github.com/users/TrySound/repos","events_url":"https://api.github.com/users/TrySound/events{/privacy}","received_events_url":"https://api.github.com/users/TrySound/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-11T17:45:11Z","updated_at":"2018-11-12T19:47:40Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/toji/gl-matrix/pulls/343","html_url":"https://github.com/toji/gl-matrix/pull/343","diff_url":"https://github.com/toji/gl-matrix/pull/343.diff","patch_url":"https://github.com/toji/gl-matrix/pull/343.patch"},"body":"`main` and `module` allows us to provide an entry points for both\r\nbundler and node. However this doesn't work with modules cherry picking.\r\n\r\nIn this diff I suggest to add `package.json` with `main` and `module`\r\nfields to each module. This will allow to import this library like this\r\n\r\n```js\r\nimport { create } from 'gl-matrix/vec2';\r\n```\r\n\r\nThe structure looks like this\r\n\r\n```\r\nREADME.md\r\nLICENSE.md\r\ncjs/*.js\r\nesm/*.js\r\nmat2/package.json\r\nmat2d/package.json\r\nmat3/package.json\r\nmat4/package.json\r\nquat/package.json\r\nquat2/package.json\r\nvec2/package.json\r\nvec3/package.json\r\nvec4/package.json\r\ngl-matrix-min.js\r\ngl-matrix.js\r\n```\r\n\r\nEach `package.json` looks like this\r\n\r\n```json\r\n{\r\n  \"name\": \"gl-matrix/vec2\",\r\n  \"main\": \"../cjs/vec2.js\",\r\n  \"module\": \"../esm/vec2.js\"\r\n}\r\n```\r\n\r\nTo prevent root folder pollution I made it private and copy necessary\r\nfiles like `package.json`, `README.md` and `LICENSE.md` into dist\r\nfolder. To publish package you need to go first to `dist` folder."},"comment":{"url":"https://api.github.com/repos/toji/gl-matrix/issues/comments/438006356","html_url":"https://github.com/toji/gl-matrix/pull/343#issuecomment-438006356","issue_url":"https://api.github.com/repos/toji/gl-matrix/issues/343","id":438006356,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODAwNjM1Ng==","user":{"login":"TrySound","id":5635476,"node_id":"MDQ6VXNlcjU2MzU0NzY=","avatar_url":"https://avatars0.githubusercontent.com/u/5635476?v=4","gravatar_id":"","url":"https://api.github.com/users/TrySound","html_url":"https://github.com/TrySound","followers_url":"https://api.github.com/users/TrySound/followers","following_url":"https://api.github.com/users/TrySound/following{/other_user}","gists_url":"https://api.github.com/users/TrySound/gists{/gist_id}","starred_url":"https://api.github.com/users/TrySound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrySound/subscriptions","organizations_url":"https://api.github.com/users/TrySound/orgs","repos_url":"https://api.github.com/users/TrySound/repos","events_url":"https://api.github.com/users/TrySound/events{/privacy}","received_events_url":"https://api.github.com/users/TrySound/received_events","type":"User","site_admin":false},"created_at":"2018-11-12T19:47:40Z","updated_at":"2018-11-12T19:47:40Z","author_association":"CONTRIBUTOR","body":"@stefnotch Can this be merged?"}}
{"actor":{"display_login":"TrySound"}}