Skip to content

Commit 5c884a3

Browse files
Merge pull request #3454 from NativeScript/kerezov/allow-pass-skipnativeprepare
refactor: allow pass skipnativeprepare
2 parents 3cac5cd + 6072c86 commit 5c884a3

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

lib/commands/debug.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ export class DebugPlatformCommand implements ICommand {
4242
[selectedDeviceForDebug.deviceInfo.identifier]: true
4343
},
4444
// This will default in the liveSyncCommandHelper
45-
buildPlatform: undefined
45+
buildPlatform: undefined,
46+
skipNativePrepare: false
4647
});
4748
}
4849

lib/definitions/livesync.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ interface IDevicePathProvider {
384384
/**
385385
* Describes additional options, that can be passed to LiveSyncCommandHelper.
386386
*/
387-
interface ILiveSyncCommandHelperAdditionalOptions extends IBuildPlatformAction {
387+
interface ILiveSyncCommandHelperAdditionalOptions extends IBuildPlatformAction, INativePrepare {
388388
/**
389389
* A map representing devices which have debugging enabled initially.
390390
*/

lib/helpers/livesync-command-helper.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,11 @@ export class LiveSyncCommandHelper implements ILiveSyncCommandHelper {
9090
debugggingEnabled: additionalOptions && additionalOptions.deviceDebugMap && additionalOptions.deviceDebugMap[d.deviceInfo.identifier],
9191
debugOptions: this.$options,
9292
outputPath: additionalOptions && additionalOptions.getOutputDirectory && additionalOptions.getOutputDirectory({
93-
platform,
93+
platform: d.deviceInfo.platform,
9494
emulator: d.isEmulator,
9595
projectDir: this.$projectData.projectDir
96-
})
96+
}),
97+
skipNativePrepare: additionalOptions && additionalOptions.skipNativePrepare
9798
};
9899

99100
return info;

0 commit comments

Comments
 (0)