diff --git a/API.md b/API.md index c850b7f..07ce303 100644 --- a/API.md +++ b/API.md @@ -74,7 +74,7 @@ Returns a string representation of this construct. ##### `addExcludeFromCleanup` ```typescript -public addExcludeFromCleanup(globs: string): void +public addExcludeFromCleanup(globs: ...string[]): void ``` Exclude the matching files from pre-synth cleanup. @@ -84,7 +84,7 @@ source files include the projen marker and we don't want them to be erased durin ###### `globs`Required -- *Type:* string +- *Type:* ...string[] The glob patterns to match. @@ -340,7 +340,7 @@ public addBins(bins: {[ key: string ]: string}): void ##### `addBundledDeps` ```typescript -public addBundledDeps(deps: string): void +public addBundledDeps(deps: ...string[]): void ``` Defines bundled dependencies. @@ -350,7 +350,7 @@ Bundled dependencies will be added as normal dependencies as well as to the ###### `deps`Required -- *Type:* string +- *Type:* ...string[] Names modules to install. @@ -365,28 +365,28 @@ add/upgrade`. If you wish to specify a version range use this syntax: ##### ~~`addCompileCommand`~~ ```typescript -public addCompileCommand(commands: string): void +public addCompileCommand(commands: ...string[]): void ``` DEPRECATED. ###### `commands`Required -- *Type:* string +- *Type:* ...string[] --- ##### `addDeps` ```typescript -public addDeps(deps: string): void +public addDeps(deps: ...string[]): void ``` Defines normal dependencies. ###### `deps`Required -- *Type:* string +- *Type:* ...string[] Names modules to install. @@ -401,14 +401,14 @@ add/upgrade`. If you wish to specify a version range use this syntax: ##### `addDevDeps` ```typescript -public addDevDeps(deps: string): void +public addDevDeps(deps: ...string[]): void ``` Defines development/test dependencies. ###### `deps`Required -- *Type:* string +- *Type:* ...string[] Names modules to install. @@ -439,14 +439,14 @@ The fields to set. ##### `addKeywords` ```typescript -public addKeywords(keywords: string): void +public addKeywords(keywords: ...string[]): void ``` Adds keywords to package.json (deduplicated). ###### `keywords`Required -- *Type:* string +- *Type:* ...string[] The keywords to add. @@ -455,7 +455,7 @@ The keywords to add. ##### `addPeerDeps` ```typescript -public addPeerDeps(deps: string): void +public addPeerDeps(deps: ...string[]): void ``` Defines peer dependencies. @@ -466,7 +466,7 @@ your code against the minimum version required from your consumers. ###### `deps`Required -- *Type:* string +- *Type:* ...string[] Names modules to install. @@ -497,14 +497,14 @@ The scripts to set. ##### ~~`addTestCommand`~~ ```typescript -public addTestCommand(commands: string): void +public addTestCommand(commands: ...string[]): void ``` DEPRECATED. ###### `commands`Required -- *Type:* string +- *Type:* ...string[] --- @@ -1577,7 +1577,7 @@ Returns a string representation of this construct. ##### `addExcludeFromCleanup` ```typescript -public addExcludeFromCleanup(globs: string): void +public addExcludeFromCleanup(globs: ...string[]): void ``` Exclude the matching files from pre-synth cleanup. @@ -1587,7 +1587,7 @@ source files include the projen marker and we don't want them to be erased durin ###### `globs`Required -- *Type:* string +- *Type:* ...string[] The glob patterns to match. @@ -1843,7 +1843,7 @@ public addBins(bins: {[ key: string ]: string}): void ##### `addBundledDeps` ```typescript -public addBundledDeps(deps: string): void +public addBundledDeps(deps: ...string[]): void ``` Defines bundled dependencies. @@ -1853,7 +1853,7 @@ Bundled dependencies will be added as normal dependencies as well as to the ###### `deps`Required -- *Type:* string +- *Type:* ...string[] Names modules to install. @@ -1868,28 +1868,28 @@ add/upgrade`. If you wish to specify a version range use this syntax: ##### ~~`addCompileCommand`~~ ```typescript -public addCompileCommand(commands: string): void +public addCompileCommand(commands: ...string[]): void ``` DEPRECATED. ###### `commands`Required -- *Type:* string +- *Type:* ...string[] --- ##### `addDeps` ```typescript -public addDeps(deps: string): void +public addDeps(deps: ...string[]): void ``` Defines normal dependencies. ###### `deps`Required -- *Type:* string +- *Type:* ...string[] Names modules to install. @@ -1904,14 +1904,14 @@ add/upgrade`. If you wish to specify a version range use this syntax: ##### `addDevDeps` ```typescript -public addDevDeps(deps: string): void +public addDevDeps(deps: ...string[]): void ``` Defines development/test dependencies. ###### `deps`Required -- *Type:* string +- *Type:* ...string[] Names modules to install. @@ -1942,14 +1942,14 @@ The fields to set. ##### `addKeywords` ```typescript -public addKeywords(keywords: string): void +public addKeywords(keywords: ...string[]): void ``` Adds keywords to package.json (deduplicated). ###### `keywords`Required -- *Type:* string +- *Type:* ...string[] The keywords to add. @@ -1958,7 +1958,7 @@ The keywords to add. ##### `addPeerDeps` ```typescript -public addPeerDeps(deps: string): void +public addPeerDeps(deps: ...string[]): void ``` Defines peer dependencies. @@ -1969,7 +1969,7 @@ your code against the minimum version required from your consumers. ###### `deps`Required -- *Type:* string +- *Type:* ...string[] Names modules to install. @@ -2000,14 +2000,14 @@ The scripts to set. ##### ~~`addTestCommand`~~ ```typescript -public addTestCommand(commands: string): void +public addTestCommand(commands: ...string[]): void ``` DEPRECATED. ###### `commands`Required -- *Type:* string +- *Type:* ...string[] --- diff --git a/examples/hybrid-module/terraform/provider.tf b/examples/hybrid-module/terraform/provider.tf index 87c28b0..c6fba20 100644 --- a/examples/hybrid-module/terraform/provider.tf +++ b/examples/hybrid-module/terraform/provider.tf @@ -1,19 +1,19 @@ # This file is managed by projen. Do not edit, change the .projenrc file instead. - terraform { - # Limit provider version (some modules are not compatible with aws 4.x) - required_providers { - aws = { - source = "hashicorp/aws" - version = "~> 3.74" - } - } - # Terraform binary version constraint - required_version = ">= 1.2.0" - } - - - provider "aws" { - region = "eu-central-1" +terraform { + # Limit provider version (some modules are not compatible with aws 4.x) + required_providers { + aws = { + source = "hashicorp/aws" + version = "~> 3.74" } + } + # Terraform binary version constraint + required_version = ">= 1.2.0" +} + + +provider "aws" { + region = "eu-central-1" +} \ No newline at end of file diff --git a/examples/terraform-module/src/.gen/constraints.json b/examples/terraform-module/src/.gen/constraints.json index 684d7c7..2bcb753 100644 --- a/examples/terraform-module/src/.gen/constraints.json +++ b/examples/terraform-module/src/.gen/constraints.json @@ -1,5 +1,5 @@ { - "cdktf": "0.20.0", + "cdktf": "0.20.8", "providers": { "eks": "~> 18.0", "eks-managed-nodegroup": "~> 18.0"