Skip to content

Commit

Permalink
feat: upgrade to [email protected] and [email protected]
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Low-level classes `EsbuildAsset` and `EsbuildCode` have been removed. Please use `TypeScriptAsset` and `TypeScriptCode` respectively.
  • Loading branch information
mrgrain committed Sep 3, 2023
1 parent b9064af commit c2aabcb
Show file tree
Hide file tree
Showing 12 changed files with 1,486 additions and 1,381 deletions.
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': '^16',
},
});
const rosetta = project.addTask('rosetta', { exec: 'jsii-rosetta extract' });
project.tasks.tryFind('post-compile')?.prependSpawn(rosetta);
Expand Down
Loading

0 comments on commit c2aabcb

Please sign in to comment.