Skip to content

Commit

Permalink
feat: make author address overridable
Browse files Browse the repository at this point in the history
  • Loading branch information
mbialon authored and ansgarm committed Jan 4, 2024
1 parent d66cca7 commit 8e2d666
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ export interface CdktfProviderProjectOptions extends cdk.JsiiProjectOptions {
readonly deprecationDate?: string;
}

const authorAddress = "https://hashicorp.com";
const getMavenName = (providerName: string): string => {
return ["null", "random"].includes(providerName)
? `${providerName}_provider`
Expand Down Expand Up @@ -105,6 +104,7 @@ export class CdktfProviderProject extends cdk.JsiiProject {
isDeprecated,
deprecationDate,
authorName = "HashiCorp",
authorAddress = "https://hashicorp.com",
namespace = "cdktf",
githubNamespace = "cdktf",
mavenEndpoint = "https://hashicorp.oss.sonatype.org",
Expand Down
8 changes: 4 additions & 4 deletions test/__snapshots__/index.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const getProject = (
name: "test",
terraformProvider: "random@~>2.0",
author: "cdktf-team",
authorAddress: "cdktf-team address",
authorAddress: "https://github.com/cdktf",
cdktfVersion: "0.10.3",
constructsVersion: "10.0.0",
defaultReleaseBranch: "main",
Expand Down

0 comments on commit 8e2d666

Please sign in to comment.