Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: upgrade to [email protected] and [email protected] #665

Merged
merged 7 commits into from
Sep 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 7 additions & 19 deletions .projen/deps.json

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

4 changes: 2 additions & 2 deletions .projen/tasks.json

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

16 changes: 15 additions & 1 deletion .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,24 @@ const releaseBranches: StableReleaseBranches = {
minNodeVersion: '18.x',
releaseSchedule: '0 5 1,15 * *',
npmDistTags: ['cdk-v2'],
jsiiVersion: '5.1.x',
typescriptVersion: '5.1.x',
},
v4: {
majorVersion: 4,
cdkVersion: '2.12.0',
minNodeVersion: '16.x', // should be 14.x but that version doesn't build anymore
releaseSchedule: '0 5 15 * *',
jsiiVersion: '1.x',
typescriptVersion: '4.9.x',
},
v3: {
majorVersion: 3,
cdkVersion: '2.0.0',
minNodeVersion: '16.x', // should be 14.x but that version doesn't build anymore
releaseSchedule: '0 5 15 * *',
jsiiVersion: '1.x',
typescriptVersion: '4.9.x',
},
};

Expand Down Expand Up @@ -103,6 +109,8 @@ const project = new awscdk.AwsCdkConstructLibrary({

// Dependencies
cdkVersion: releaseBranches.main.cdkVersion,
jsiiVersion: releaseBranches.main.jsiiVersion,
typescriptVersion: releaseBranches.main.typescriptVersion,
devDeps: [
`@aws-cdk/aws-synthetics-alpha@${releaseBranches.main.cdkVersion}-alpha.0`,
'@types/eslint',
Expand Down Expand Up @@ -194,7 +202,13 @@ project.buildWorkflow?.addPostBuildJob('test-latest-versions', {

// jsii rosetta
project.package.addField('jsiiRosetta', {
strict: false,
strict: true,
exampleDependencies: {
'@aws-cdk/aws-synthetics-alpha': '2.88.0-alpha.0',
'aws-cdk-lib': '2.88.0',
'@mrgrain/cdk-esbuild': '^4',
'@types/node': '^18',
},
});
const rosetta = project.addTask('rosetta', { exec: 'jsii-rosetta extract' });
project.tasks.tryFind('post-compile')?.prependSpawn(rosetta);
Expand Down
Loading
Loading