Skip to content

Commit 712537e

Browse files
committed
clean-app command installs the platform if not present.
This allows for easier documentation workflows when using webpack.
1 parent 098e876 commit 712537e

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)