Skip to content

Commit

Permalink
Fix usage of ExecutionOptions in watch
Browse files Browse the repository at this point in the history
  • Loading branch information
mutahhir committed Sep 14, 2022
1 parent ed06d83 commit 54ccec2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/cdktf-cli/lib/watch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import path from "path";
import {
CdktfProject,
CdktfProjectOptions,
ExecutionOptions,
MutationOptions,
} from "./cdktf-project";
import { Errors } from "./errors";
import * as fs from "fs";
Expand Down Expand Up @@ -93,7 +93,7 @@ export type State =

export async function watch(
projectOptions: CdktfProjectOptions,
executionOptions: ExecutionOptions,
mutationOptions: MutationOptions,
abortSignal: AbortSignal,
onStateChange: (newState: State) => void
) {
Expand Down Expand Up @@ -122,7 +122,7 @@ export async function watch(
});
const abort = () => project.hardAbort();
abortSignal.addEventListener("abort", abort);
await project.deploy(executionOptions);
await project.deploy(mutationOptions);
abortSignal.removeEventListener("abort", abort);
logger.debug("cdktf deploy finished");

Expand Down

0 comments on commit 54ccec2

Please sign in to comment.