Skip to content

Commit 8223f4f

Browse files
authored
Fix native platform add after cloud build. (#3075)
When we prepare the platform for cloud build we skip the native prepare. After this partial prepare, the platform directory contains only .js files. In order to make a local build we should add the native part of the platform which fails with `ENOTEMPTY: directory not empty, rename`.
1 parent f762d88 commit 8223f4f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/services/platform-service.ts

+2
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ export class PlatformService extends EventEmitter implements IPlatformService {
144144
config.pathToTemplate = customTemplateOptions && customTemplateOptions.pathToTemplate;
145145

146146
if (!nativePrepare || !nativePrepare.skipNativePrepare) {
147+
const platformDir = path.join(projectData.platformsDir, platformData.normalizedPlatformName.toLowerCase());
148+
this.$fs.deleteDirectory(platformDir);
147149
await this.addPlatformCoreNative(platformData, frameworkDir, installedVersion, projectData, config);
148150
}
149151

0 commit comments

Comments
 (0)