diff --git a/src/clickup-cdk.ts b/src/clickup-cdk.ts index 900bc364..fa19cbf2 100644 --- a/src/clickup-cdk.ts +++ b/src/clickup-cdk.ts @@ -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); diff --git a/test/__snapshots__/clickup-cdk.test.ts.snap b/test/__snapshots__/clickup-cdk.test.ts.snap index 915e635a..54480dbf 100644 --- a/test/__snapshots__/clickup-cdk.test.ts.snap +++ b/test/__snapshots__/clickup-cdk.test.ts.snap @@ -23,18 +23,18 @@ exports[`ClickUpCdkConstructLibrary defaults package.json 1`] = ` "eslint-plugin-prettier": "*", "jest": "*", "jest-junit": "^15", - "jsii": "5.0.*", + "jsii": "~5.3.0", "jsii-diff": "*", "jsii-docgen": "*", "jsii-pacmak": "*", "jsii-release": "*", - "jsii-rosetta": "5.0.*", + "jsii-rosetta": "~5.3.0", "prettier": "*", "projen": "*", "standard-version": "^9", "ts-jest": "*", "ts-node": "^10", - "typescript": "*", + "typescript": "~5.3.0", }, "engines": { "node": ">= 18.17.1",