{"action":"created","issue":{"url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/2468","repository_url":"https://api.github.com/repos/facebookincubator/create-react-app","labels_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/2468/labels{/name}","comments_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/2468/comments","events_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/2468/events","html_url":"https://github.com/facebookincubator/create-react-app/pull/2468","id":233439282,"number":2468,"title":"Allow importing package.json","user":{"login":"iamdoron","id":3956042,"avatar_url":"https://avatars1.githubusercontent.com/u/3956042?v=3","gravatar_id":"","url":"https://api.github.com/users/iamdoron","html_url":"https://github.com/iamdoron","followers_url":"https://api.github.com/users/iamdoron/followers","following_url":"https://api.github.com/users/iamdoron/following{/other_user}","gists_url":"https://api.github.com/users/iamdoron/gists{/gist_id}","starred_url":"https://api.github.com/users/iamdoron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamdoron/subscriptions","organizations_url":"https://api.github.com/users/iamdoron/orgs","repos_url":"https://api.github.com/users/iamdoron/repos","events_url":"https://api.github.com/users/iamdoron/events{/privacy}","received_events_url":"https://api.github.com/users/iamdoron/received_events","type":"User","site_admin":false},"labels":[{"id":409579052,"url":"https://api.github.com/repos/facebookincubator/create-react-app/labels/CLA%20Signed","name":"CLA Signed","color":"009900","default":false},{"id":492719424,"url":"https://api.github.com/repos/facebookincubator/create-react-app/labels/tag:%20enhancement","name":"tag: enhancement","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/facebookincubator/create-react-app/milestones/32","html_url":"https://github.com/facebookincubator/create-react-app/milestone/32","labels_url":"https://api.github.com/repos/facebookincubator/create-react-app/milestones/32/labels","id":2531455,"number":32,"title":"1.0.x","description":"","creator":{"login":"gaearon","id":810438,"avatar_url":"https://avatars3.githubusercontent.com/u/810438?v=3","gravatar_id":"","url":"https://api.github.com/users/gaearon","html_url":"https://github.com/gaearon","followers_url":"https://api.github.com/users/gaearon/followers","following_url":"https://api.github.com/users/gaearon/following{/other_user}","gists_url":"https://api.github.com/users/gaearon/gists{/gist_id}","starred_url":"https://api.github.com/users/gaearon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaearon/subscriptions","organizations_url":"https://api.github.com/users/gaearon/orgs","repos_url":"https://api.github.com/users/gaearon/repos","events_url":"https://api.github.com/users/gaearon/events{/privacy}","received_events_url":"https://api.github.com/users/gaearon/received_events","type":"User","site_admin":false},"open_issues":31,"closed_issues":2,"state":"open","created_at":"2017-05-19T13:50:44Z","updated_at":"2017-06-22T19:52:06Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2017-06-04T15:09:27Z","updated_at":"2017-06-22T20:22:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/facebookincubator/create-react-app/pulls/2468","html_url":"https://github.com/facebookincubator/create-react-app/pull/2468","diff_url":"https://github.com/facebookincubator/create-react-app/pull/2468.diff","patch_url":"https://github.com/facebookincubator/create-react-app/pull/2468.patch"},"body":"\r\nHi,\r\n\r\nBasically, allow to import `package.json`. \r\nFor example, from `src/App.js`:\r\n```javascript\r\nimport { version } from '../package.json'\r\n```\r\nOnly the app own `package.json` is allowed to be imported.\r\n\r\nIt closes https://github.com/facebookincubator/create-react-app/issues/2466\r\n\r\n\r\n<img width=\"457\" alt=\"import_packagejson\" src=\"https://cloud.githubusercontent.com/assets/3956042/26762761/41a01a72-4950-11e7-838e-c7afb9b0b1ea.png\">"},"comment":{"url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/comments/310491984","html_url":"https://github.com/facebookincubator/create-react-app/pull/2468#issuecomment-310491984","issue_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/2468","id":310491984,"user":{"login":"gaearon","id":810438,"avatar_url":"https://avatars3.githubusercontent.com/u/810438?v=3","gravatar_id":"","url":"https://api.github.com/users/gaearon","html_url":"https://github.com/gaearon","followers_url":"https://api.github.com/users/gaearon/followers","following_url":"https://api.github.com/users/gaearon/following{/other_user}","gists_url":"https://api.github.com/users/gaearon/gists{/gist_id}","starred_url":"https://api.github.com/users/gaearon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaearon/subscriptions","organizations_url":"https://api.github.com/users/gaearon/orgs","repos_url":"https://api.github.com/users/gaearon/repos","events_url":"https://api.github.com/users/gaearon/events{/privacy}","received_events_url":"https://api.github.com/users/gaearon/received_events","type":"User","site_admin":false},"created_at":"2017-06-22T20:22:34Z","updated_at":"2017-06-22T20:22:34Z","body":"I'm not sure myself. Just make sure importing `../somethingelse.json` is still an error. "}}
{"actor":{"display_login":"gaearon"}}