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 16, 2021
1 parent d62e618 commit 9814ef0
Show file tree
Hide file tree
Showing 3 changed files with 206 additions and 91 deletions.
2 changes: 1 addition & 1 deletion packages/cdktf/lib/terraform-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,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
Loading

0 comments on commit 9814ef0

Please sign in to comment.