Skip to content

Commit acf15fa

Browse files
authored
Merge pull request #4776 from NativeScript/fatme/fix-deploy-provision
fix: respect --provision on deploy command
2 parents d5bfcb2 + 95cbb99 commit acf15fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/helpers/deploy-command-helper.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class DeployCommandHelper {
5151
});
5252

5353
await this.$deployController.deploy({
54-
buildData: this.$buildDataService.getBuildData(this.$projectData.projectDir, platform, { ...this.$options, skipWatcher: !this.$options.watch }),
54+
buildData: this.$buildDataService.getBuildData(this.$projectData.projectDir, platform, { ...this.$options.argv, skipWatcher: !this.$options.watch }),
5555
deviceDescriptors
5656
});
5757
}

lib/services/log-source-map-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class LogSourceMapService implements Mobile.ILogSourceMapService {
5353
}
5454

5555
public replaceWithOriginalFileLocations(platform: string, messageData: string, loggingOptions: Mobile.IDeviceLogOptions): string {
56-
if (!messageData || !loggingOptions.projectDir) {
56+
if (!messageData || !loggingOptions || !loggingOptions.projectDir) {
5757
return messageData;
5858
}
5959

0 commit comments

Comments
 (0)