mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 20:01:01 +08:00
Allow project-specific config for RN CLI using providesModuleNodeModules
Reviewed By: davidaurelio Differential Revision: D4409046 fbshipit-source-id: 5af0d08542935a784f4737653ccac49fd7517aff
This commit is contained in:
committed by
Facebook Github Bot
parent
09801aac30
commit
09a83f976e
@@ -101,6 +101,16 @@ module.exports = {
|
||||
description: 'Specify any additional platforms to be used by the packager',
|
||||
parse: (val) => val.split(','),
|
||||
default: (config) => config.getPlatforms(),
|
||||
}, {
|
||||
command: '--providesModuleNodeModules [list]',
|
||||
description: 'Specify any npm packages that import dependencies with providesModule',
|
||||
parse: (val) => val.split(','),
|
||||
default: (config) => {
|
||||
if (typeof config.getProvidesModuleNodeModules === 'function') {
|
||||
return config.getProvidesModuleNodeModules();
|
||||
}
|
||||
return null;
|
||||
},
|
||||
}, {
|
||||
command: '--skipflow',
|
||||
description: 'Disable flow checks'
|
||||
|
||||
Reference in New Issue
Block a user