Skip to content

Commit 0d3bc45

Browse files
authored
Merge pull request #2159 from NativeScript/hdeshev/clean-app-install-platform
clean-app command installs the platform if not present.
2 parents 2bcf94e + 712537e commit 0d3bc45

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
@@ -326,6 +326,8 @@ export class PlatformService implements IPlatformService {
326326

327327
public cleanDestinationApp(platform: string): IFuture<void> {
328328
return (() => {
329+
this.ensurePlatformInstalled(platform).wait();
330+
329331
const appSourceDirectoryPath = path.join(this.$projectData.projectDir, constants.APP_FOLDER_NAME);
330332
let platformData = this.$platformsData.getPlatformData(platform);
331333
let appDestinationDirectoryPath = path.join(platformData.appDestinationDirectoryPath, constants.APP_FOLDER_NAME);

0 commit comments

Comments
 (0)