{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/2966","labels_url":"https://api.github.com/repos/facebook/react-native/issues/2966/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/2966/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/2966/events","html_url":"https://github.com/facebook/react-native/issues/2966","id":107908392,"number":2966,"title":"react-native bundle how to specify top module path","user":{"login":"plrthink","id":2429369,"avatar_url":"https://avatars.githubusercontent.com/u/2429369?v=3","gravatar_id":"","url":"https://api.github.com/users/plrthink","html_url":"https://github.com/plrthink","followers_url":"https://api.github.com/users/plrthink/followers","following_url":"https://api.github.com/users/plrthink/following{/other_user}","gists_url":"https://api.github.com/users/plrthink/gists{/gist_id}","starred_url":"https://api.github.com/users/plrthink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plrthink/subscriptions","organizations_url":"https://api.github.com/users/plrthink/orgs","repos_url":"https://api.github.com/users/plrthink/repos","events_url":"https://api.github.com/users/plrthink/events{/privacy}","received_events_url":"https://api.github.com/users/plrthink/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/react-native/labels/iOS","name":"iOS","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-23T12:23:18Z","updated_at":"2015-09-29T14:53:01Z","closed_at":null,"body":"I have changed default path from index.ios.js to app/index.ios.js. when I run `react-native bundle --minify` for generate an offline bundle but failed. I think its because packager doesn't the path of top module path.\r\nSo how I change the default path of it?"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/144084786","html_url":"https://github.com/facebook/react-native/issues/2966#issuecomment-144084786","issue_url":"https://api.github.com/repos/facebook/react-native/issues/2966","id":144084786,"user":{"login":"nsimmons","id":3313263,"avatar_url":"https://avatars.githubusercontent.com/u/3313263?v=3","gravatar_id":"","url":"https://api.github.com/users/nsimmons","html_url":"https://github.com/nsimmons","followers_url":"https://api.github.com/users/nsimmons/followers","following_url":"https://api.github.com/users/nsimmons/following{/other_user}","gists_url":"https://api.github.com/users/nsimmons/gists{/gist_id}","starred_url":"https://api.github.com/users/nsimmons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nsimmons/subscriptions","organizations_url":"https://api.github.com/users/nsimmons/orgs","repos_url":"https://api.github.com/users/nsimmons/repos","events_url":"https://api.github.com/users/nsimmons/events{/privacy}","received_events_url":"https://api.github.com/users/nsimmons/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T14:53:01Z","updated_at":"2015-09-29T14:53:01Z","body":"`react-native bundle --root app --minify` should do the trick, assuming you have put all your JS files under the `app/` folder.\r\n\r\n#2572 tries to address some of the confusion around the bundle command. \r\n"}}