Skip to content

Commit

Permalink
chore(deps): upgrade to CDK v2
Browse files Browse the repository at this point in the history
  • Loading branch information
flyingImer committed Mar 25, 2022
1 parent 8965ded commit 4b9343f
Show file tree
Hide file tree
Showing 16 changed files with 221 additions and 297 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml

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

2 changes: 1 addition & 1 deletion .github/workflows/release.yml

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

2 changes: 1 addition & 1 deletion .github/workflows/upgrade-main.yml

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

23 changes: 11 additions & 12 deletions .projen/deps.json

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

12 changes: 6 additions & 6 deletions .projen/tasks.json

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

23 changes: 3 additions & 20 deletions .projenrc.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
const { awscdk, DependencyType } = require('projen');

const CDK_VERSION = '1.145.0';
const CONSTRUCT_VERSION = '3.3.69';
const { awscdk } = require('projen');

const project = new awscdk.AwsCdkConstructLibrary({
author: 'Ej Wang',
authorAddress: '[email protected]',

// stick to monocdk for now
cdkVersion: CDK_VERSION,
cdkAssertions: false,
cdkAssert: false,
cdkDependenciesAsDeps: false,
cdkVersion: '2.10.0',

autoApproveOptions: {
allowedUsernames: ['flyingImer'],
Expand All @@ -29,23 +22,13 @@ const project = new awscdk.AwsCdkConstructLibrary({
// deps: [], /* Runtime dependencies of this module. */
description: 'Controlling concurrency in your distributed systems.', /* The description is just a string that helps people understand the purpose of the package. */
devDeps: [
`monocdk@${CDK_VERSION}`,
`@monocdk-experiment/assert@${CDK_VERSION}`,
`constructs@${CONSTRUCT_VERSION}`,
'all-contributors-cli', // for contributors
'@aws-cdk/aws-lambda-python-alpha', // for example/
], /* Build dependencies for this module. */
peerDeps: [
`monocdk@^${CDK_VERSION}`,
],
// packageName: undefined, /* The "name" in package.json. */
});
// remove all @aws-cdk deps to adopt monocdk
project.deps.all.filter(dep => dep.name.includes('@aws-cdk')).forEach(dep => project.deps.removeDependency(dep.name));
project.deps.removeDependency('constructs', DependencyType.PEER);
project.deps.addDependency(`constructs@^${CONSTRUCT_VERSION}`, DependencyType.PEER);

project.tsconfigDev.addInclude('example/**/*.ts');
// project.gitignore.exclude('.env');
project.gitignore.exclude('example/**/*.js', 'example/**/*.d.ts', 'example/cdk.out');

// for contributors
Expand Down
Loading

0 comments on commit 4b9343f

Please sign in to comment.