Skip to content

Commit

Permalink
feat(CdkConstructLibrary): jsii 5.3 [CLK-469895]
Browse files Browse the repository at this point in the history
  • Loading branch information
ahammond committed Feb 20, 2024
1 parent 03ffb31 commit cca1d9f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
24 changes: 16 additions & 8 deletions src/clickup-cdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,22 @@ export module clickupCdk {
const authorAddress = options.authorAddress || clickupTs.defaults.authorAddress;
// Theoretically we should be able to just take a default here, but for some reason this is required.
const repositoryUrl = options.repositoryUrl || `https://github.com/${name.substring(1)}.git`;
const mergedOptions = merge(clickupTs.defaults, { jsiiVersion: '5.0.*' }, options, {
authorName,
authorAddress,
name,
repositoryUrl,
renovatebotOptions: renovateWorkflow.getRenovateOptions(options.renovateOptionsConfig),
cdkDiffOptions: cdkDiffWorkflow.getCDKDiffOptions(options.cdkDiffOptionsConfig),
});
const mergedOptions = merge(
clickupTs.defaults,
{
jsiiVersion: '~5.3.0', // Force JSII upgrade CLK-469895
typescriptVersion: '~5.3.0',
},
options,
{
authorName,
authorAddress,
name,
repositoryUrl,
renovatebotOptions: renovateWorkflow.getRenovateOptions(options.renovateOptionsConfig),
cdkDiffOptions: cdkDiffWorkflow.getCDKDiffOptions(options.cdkDiffOptionsConfig),
},
);
super(mergedOptions);
clickupTs.fixTsNodeDeps(this.package);
codecov.addCodeCovYml(this);
Expand Down
6 changes: 3 additions & 3 deletions test/__snapshots__/clickup-cdk.test.ts.snap

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

0 comments on commit cca1d9f

Please sign in to comment.