Skip to content

Commit e0ec72c

Browse files
author
Mitko-Kerezov
committed
Call afterPrepareAllPlugins for the specific platform only
Instead of calling `afterPrepareAllPlugins` for all installed platforms.
1 parent ce1064e commit e0ec72c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/tools/broccoli/node-modules-dest-copy.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ export class DestCopy implements IBroccoliPlugin {
2626
private platform: string,
2727
private $fs: IFileSystem,
2828
private $projectFilesManager: IProjectFilesManager,
29-
private $pluginsService: IPluginsService
29+
private $pluginsService: IPluginsService,
30+
private $platformsData: IPlatformsData
3031
) {
3132
this.dependencies = Object.create(null);
3233
this.devDependencies = this.getDevDependencies(projectDir);
@@ -93,7 +94,7 @@ export class DestCopy implements IBroccoliPlugin {
9394
});
9495

9596
if(!_.isEmpty(this.dependencies)) {
96-
this.$pluginsService.afterPrepareAllPlugins().wait();
97+
this.$platformsData.getPlatformData(platform).platformProjectService.afterPrepareAllPlugins().wait();
9798
}
9899
}
99100

0 commit comments

Comments
 (0)