From ce3dd942656976ab26faa104f2db7583da7981ff Mon Sep 17 00:00:00 2001 From: sis0k0 Date: Tue, 17 Jan 2017 17:42:26 +0200 Subject: [PATCH] fix(run): disable watch when using run with --bundle --- lib/commands/run.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/commands/run.ts b/lib/commands/run.ts index fe8edb7409..326922ed36 100644 --- a/lib/commands/run.ts +++ b/lib/commands/run.ts @@ -5,10 +5,16 @@ export class RunCommandBase { public executeCore(args: string[]): IFuture { this.$platformService.deployPlatform(args[0]).wait(); + + if (this.$options.bundle) { + this.$options.watch = false; + } + if (this.$options.release) { return this.$platformService.runPlatform(args[0]); } - return this.$usbLiveSyncService.liveSync(args[0]); + + return this.$usbLiveSyncService.liveSync(args[0]); } }