From 67ce2ecefc8ceb2ad0c472d7a7e4503a2d2e618a Mon Sep 17 00:00:00 2001 From: fatme Date: Fri, 28 Jun 2019 09:56:55 +0300 Subject: [PATCH] fix: exit publish command after uploading package to appstore Currently `tns publish` command doesn't exit as the webpack process is started in watch mode. --- lib/commands/appstore-upload.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/commands/appstore-upload.ts b/lib/commands/appstore-upload.ts index 31463c3b19..e8dfc56508 100644 --- a/lib/commands/appstore-upload.ts +++ b/lib/commands/appstore-upload.ts @@ -58,11 +58,11 @@ export class PublishIOS implements ICommand { // As we need to build the package for device this.$options.forDevice = true; - const buildData = new IOSBuildData(this.$projectData.projectDir, platform, this.$options); + const buildData = new IOSBuildData(this.$projectData.projectDir, platform, { ...this.$options.argv, watch: false }); ipaFilePath = await this.$buildController.prepareAndBuild(buildData); } else { this.$logger.info("No .ipa, mobile provision or certificate set. Perfect! Now we'll build .xcarchive and let Xcode pick the distribution certificate and provisioning profile for you when exporting .ipa for AppStore submission."); - const buildData = new IOSBuildData(this.$projectData.projectDir, platform, { ...this.$options.argv, buildForAppStore: true }); + const buildData = new IOSBuildData(this.$projectData.projectDir, platform, { ...this.$options.argv, buildForAppStore: true, watch: false }); ipaFilePath = await this.$buildController.prepareAndBuild(buildData); this.$logger.info(`Export at: ${ipaFilePath}`); }