Skip to content

Commit 25334ba

Browse files
Fatme HavaluovaFatme Havaluova
authored andcommitted
Remove plugin platform directory from tns_modules
1 parent 92378b7 commit 25334ba

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/services/plugins-service.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ export class PluginsService implements IPluginsService {
118118
pluginData.pluginPlatformsFolderPath = (platform: string) => path.join(pluginData.fullPath, "platforms", platform);
119119
platformData.platformProjectService.preparePluginNativeCode(pluginData).wait();
120120

121+
shelljs.rm("-rf", path.join(pluginDestinationPath, pluginData.name, "platforms"));
122+
121123
// Show message
122124
this.$logger.out(`Successfully prepared plugin ${pluginData.name} for ${platform}.`);
123125

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ export class DestCopy implements IBroccoliPlugin {
7474
let isPlugin = !!dependency.nativescript;
7575
if(isPlugin) {
7676
this.$pluginsService.prepare(dependency).wait();
77-
shelljs.rm("-rf", path.join(this.outputRoot, dependency.name, "platforms"));
7877
}
7978
});
8079
}

0 commit comments

Comments
 (0)