{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/7297","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/7297/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/7297/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/7297/events","html_url":"https://github.com/facebook/react-native/pull/7297","id":151898725,"number":7297,"title":"add reset-cache command to bundle","user":{"login":"mroswald","id":4459348,"avatar_url":"https://avatars.githubusercontent.com/u/4459348?v=3","gravatar_id":"","url":"https://api.github.com/users/mroswald","html_url":"https://github.com/mroswald","followers_url":"https://api.github.com/users/mroswald/followers","following_url":"https://api.github.com/users/mroswald/following{/other_user}","gists_url":"https://api.github.com/users/mroswald/gists{/gist_id}","starred_url":"https://api.github.com/users/mroswald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mroswald/subscriptions","organizations_url":"https://api.github.com/users/mroswald/orgs","repos_url":"https://api.github.com/users/mroswald/repos","events_url":"https://api.github.com/users/mroswald/events{/privacy}","received_events_url":"https://api.github.com/users/mroswald/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/react-native/labels/CLA%20Signed","name":"CLA Signed","color":"e7e7e7"},{"url":"https://api.github.com/repos/facebook/react-native/labels/GH%20Review:%20review-needed","name":"GH Review: review-needed","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-29T15:40:16Z","updated_at":"2016-04-29T16:30:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/facebook/react-native/pulls/7297","html_url":"https://github.com/facebook/react-native/pull/7297","diff_url":"https://github.com/facebook/react-native/pull/7297.diff","patch_url":"https://github.com/facebook/react-native/pull/7297.patch"},"body":"Currently the `react-native bundle` has no option to reset the file cache. For example changing the .babelrc has no effect on the bundling process. `react-native start` has it already implemented, so this is just a small addition.\r\n\r\n**Test plan (required)**\r\n\r\nthe issue:\r\n\r\n- `react-native init` a new project\r\n- run `react-native bundle` (should work as expected)\r\n- create `.babelrc` with empty object ```{}```\r\n- rerun `react-native bundle`\r\n- should fail now with `Unexptected token` (no babel plugins configured)\r\n - if not failing, your cache already hit (clear $TMPDIR to get the error)\r\n- delete .babelrc and rerun `bundle`\r\n- still failing, but it should went back to normal\r\n- delete your $TMPDIR contents\r\n- works again\r\n\r\nThe option `--reset-cache` should fix that\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/215795438","html_url":"https://github.com/facebook/react-native/pull/7297#issuecomment-215795438","issue_url":"https://api.github.com/repos/facebook/react-native/issues/7297","id":215795438,"user":{"login":"davidaurelio","id":158859,"avatar_url":"https://avatars.githubusercontent.com/u/158859?v=3","gravatar_id":"","url":"https://api.github.com/users/davidaurelio","html_url":"https://github.com/davidaurelio","followers_url":"https://api.github.com/users/davidaurelio/followers","following_url":"https://api.github.com/users/davidaurelio/following{/other_user}","gists_url":"https://api.github.com/users/davidaurelio/gists{/gist_id}","starred_url":"https://api.github.com/users/davidaurelio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidaurelio/subscriptions","organizations_url":"https://api.github.com/users/davidaurelio/orgs","repos_url":"https://api.github.com/users/davidaurelio/repos","events_url":"https://api.github.com/users/davidaurelio/events{/privacy}","received_events_url":"https://api.github.com/users/davidaurelio/received_events","type":"User","site_admin":false},"created_at":"2016-04-29T16:30:13Z","updated_at":"2016-04-29T16:30:13Z","body":"@facebook-github-bot shipit"}}