mirror of
https://github.com/status-im/react-native.git
synced 2025-02-06 06:34:01 +00:00
Fix issues with pollParams and link
This commit is contained in:
parent
85b690fb22
commit
ca8ce83cc3
@ -37,7 +37,9 @@ log.heading = 'rnpm-link';
|
||||
|
||||
const dedupeAssets = (assets) => uniqBy(assets, asset => path.basename(asset));
|
||||
|
||||
const linkDependency = (platforms, project, dependency) => {
|
||||
const linkDependency = async (platforms, project, dependency) => {
|
||||
const params = await pollParams(dependency.config.params);
|
||||
|
||||
Object.keys(platforms || {})
|
||||
.forEach(platform => {
|
||||
if (!project[platform] || !dependency.config[platform]) {
|
||||
@ -56,7 +58,6 @@ const linkDependency = (platforms, project, dependency) => {
|
||||
return null;
|
||||
}
|
||||
|
||||
return pollParams(dependency.config.params).then(params => {
|
||||
log.info(`Linking ${dependency.name} ${platform} dependency`);
|
||||
|
||||
linkConfig.register(
|
||||
@ -68,7 +69,6 @@ const linkDependency = (platforms, project, dependency) => {
|
||||
|
||||
log.info(`Platform '${platform}' module ${dependency.name} has been successfully linked`);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
const linkAssets = (platforms, project, assets) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user