Skip to content

Commit

Permalink
fix(lib): fix source path generated for local modules
Browse files Browse the repository at this point in the history
  • Loading branch information
JonCubed committed Sep 2, 2021
1 parent 337acff commit 5ca1143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cdktf/lib/terraform-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export abstract class TerraformModule
super(scope, id);

if (options.source.startsWith("./") || options.source.startsWith("../")) {
this.source = path.join("..", options.source);
this.source = path.join("../..", options.source);
} else {
this.source = options.source;
}
Expand Down

0 comments on commit 5ca1143

Please sign in to comment.