Skip to content

Commit 571ee48

Browse files
committed
Merge pull request #1453 from NativeScript/kerezov/prepare-both-platforms
Call afterPrepareAllPlugins for the specific platform only
2 parents ce1064e + e0ec72c commit 571ee48

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)