mirror of
https://github.com/status-im/react-native.git
synced 2025-01-25 00:39:03 +00:00
de517a84e8
Summary: RNPM plugins may have ship multiple commands as extensions (e.g., https://github.com/rnpm/rnpm-plugin-link/blob/master/index.js#L1) The consumer of the user commands (https://github.com/facebook/react-native/blob/master/local-cli/commands.js#L67) expects a flat list of commands, which used to be flattened here https://github.com/rnpm/rnpm/blob/master/bin/cli#L35 in RNPM. This commit simply flattens the (possible) set of commands coming out of a user plugin. Closes https://github.com/facebook/react-native/pull/9170 Differential Revision: D3661809 fbshipit-source-id: 72107745e53bf63b47a297eae546ed4a69c57008