Skip to content

Commit

Permalink
fix(lib): respect AppOption.outdir before env var
Browse files Browse the repository at this point in the history
The environment variable is set through the CLI so it's always set.

Closes #2289
  • Loading branch information
DanielMSchmidt committed Dec 6, 2023
1 parent b523b06 commit 6bfb057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cdktf/lib/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class App extends Construct {
super(undefined as any, "");
Object.defineProperty(this, APP_SYMBOL, { value: true });

this.outdir = process.env.CDKTF_OUTDIR ?? config.outdir ?? "cdktf.out";
this.outdir = config.outdir ?? process.env.CDKTF_OUTDIR ?? "cdktf.out";
this.targetStackId = process.env.CDKTF_TARGET_STACK_ID;
this.skipValidation = config.skipValidation || false;
this.skipBackendValidation = config.skipBackendValidation || false;
Expand Down

0 comments on commit 6bfb057

Please sign in to comment.