Skip to content

Commit 7565c84

Browse files
authored
Merge branch 'main' into feat/emr-serverless-containers
2 parents faaa312 + 50b14fd commit 7565c84

File tree

35 files changed

+499
-342
lines changed

35 files changed

+499
-342
lines changed

.github/workflows/release.yml

Lines changed: 70 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projen/tasks.json

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projenrc.ts

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import * as path from 'path';
12
import { yarn, CdkCliIntegTestsWorkflow } from 'cdklabs-projen-project-types';
23
import * as pj from 'projen';
34
import { Stability } from 'projen/lib/cdk';
@@ -142,6 +143,13 @@ function jestOptionsForProject(options: pj.javascript.JestOptions): pj.javascrip
142143
};
143144
}
144145

146+
function transitiveFeaturesAndFixes(thisPkg: string, depPkgs: string[]) {
147+
return pj.ReleasableCommits.featuresAndFixes([
148+
'.',
149+
...depPkgs.map(p => path.relative(`packages/${thisPkg}`, `packages/${p}`)),
150+
].join(' '));
151+
}
152+
145153
const repoProject = new yarn.Monorepo({
146154
projenrcTs: true,
147155
name: 'aws-cdk-cli',
@@ -216,8 +224,6 @@ const repoProject = new yarn.Monorepo({
216224
},
217225
});
218226

219-
new AdcPublishing(repoProject);
220-
221227
// Eslint for projen config
222228
// @ts-ignore
223229
repoProject.eslint = new pj.javascript.Eslint(repoProject, {
@@ -227,6 +233,12 @@ repoProject.eslint = new pj.javascript.Eslint(repoProject, {
227233
fileExtensions: ['.ts', '.tsx'],
228234
lintProjenRc: false,
229235
});
236+
// always lint projen files as part of the build
237+
if (repoProject.eslint?.eslintTask) {
238+
repoProject.tasks.tryFind('build')?.spawn(repoProject.eslint?.eslintTask);
239+
}
240+
241+
new AdcPublishing(repoProject);
230242

231243
const repo = configureProject(repoProject);
232244

@@ -791,6 +803,8 @@ const cli = configureProject(
791803

792804
// Append a specific version string for testing
793805
nextVersionCommand: 'tsx ../../projenrc/next-version.ts maybeRc',
806+
807+
releasableCommits: transitiveFeaturesAndFixes('aws-cdk', [cloudAssemblySchema.name, cloudFormationDiff.name]),
794808
}),
795809
);
796810

@@ -923,8 +937,7 @@ const cliLib = configureProject(
923937
devDeps: ['aws-cdk-lib', cli, 'constructs'],
924938
disableTsconfig: true,
925939
nextVersionCommand: `tsx ../../../projenrc/next-version.ts copyVersion:../../../${cliPackageJson} append:-alpha.0`,
926-
// Watch 2 directories at once
927-
releasableCommits: pj.ReleasableCommits.featuresAndFixes(`. ../../${cli.name}`),
940+
releasableCommits: transitiveFeaturesAndFixes('@aws-cdk/cli-lib-alpha', [cli.name, cloudAssemblySchema.name, cloudFormationDiff.name]),
928941
eslintOptions: {
929942
dirs: ['lib'],
930943
ignorePatterns: [
@@ -1006,9 +1019,7 @@ const TOOLKIT_LIB_EXCLUDE_PATTERNS = [
10061019

10071020
const toolkitLib = configureProject(
10081021
new yarn.TypeScriptWorkspace({
1009-
...genericCdkProps({
1010-
private: true,
1011-
}),
1022+
...genericCdkProps(),
10121023
parent: repo,
10131024
name: '@aws-cdk/toolkit-lib',
10141025
description: 'AWS CDK Programmatic Toolkit Library',
@@ -1081,7 +1092,7 @@ const toolkitLib = configureProject(
10811092
'typedoc',
10821093
],
10831094
// Watch 2 directories at once
1084-
releasableCommits: pj.ReleasableCommits.featuresAndFixes(`. ../../${cli.name}`),
1095+
releasableCommits: transitiveFeaturesAndFixes('@aws-cdk/toolkit-lib', [cli.name, cloudAssemblySchema.name, cloudFormationDiff.name]),
10851096
eslintOptions: {
10861097
dirs: ['lib'],
10871098
ignorePatterns: [
@@ -1200,8 +1211,7 @@ const cdkCliWrapper = configureProject(
12001211
srcdir: 'lib',
12011212
devDeps: ['aws-cdk-lib', cli, 'constructs', '@aws-cdk/integ-runner'],
12021213
nextVersionCommand: `tsx ../../../projenrc/next-version.ts copyVersion:../../../${cliPackageJson}`,
1203-
// Watch 2 directories at once
1204-
releasableCommits: pj.ReleasableCommits.featuresAndFixes(`. ../../${cli.name}`),
1214+
releasableCommits: transitiveFeaturesAndFixes('@aws-cdk/cdk-cli-wrapper', [cli.name, cloudAssemblySchema.name, cloudFormationDiff.name]),
12051215

12061216
jestOptions: jestOptionsForProject({
12071217
jestConfig: {
@@ -1231,8 +1241,7 @@ const cdkAliasPackage = configureProject(
12311241
srcdir: 'lib',
12321242
deps: [cli],
12331243
nextVersionCommand: `tsx ../../projenrc/next-version.ts copyVersion:../../${cliPackageJson}`,
1234-
// Watch 2 directories at once
1235-
releasableCommits: pj.ReleasableCommits.featuresAndFixes(`. ../${cli.name}`),
1244+
releasableCommits: transitiveFeaturesAndFixes('cdk', [cli.name, cloudAssemblySchema.name, cloudFormationDiff.name]),
12361245
}),
12371246
);
12381247
void cdkAliasPackage;

package.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk/cdk-build-tools/package.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk/cdk-cli-wrapper/package.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk/cli-lib-alpha/.projen/tasks.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk/cli-lib-alpha/THIRD_PARTY_LICENSES

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14006,7 +14006,7 @@ Apache License
1400614006

1400714007
----------------
1400814008

14009-
** @jsii/check-node@1.106.0 - https://www.npmjs.com/package/@jsii/check-node/v/1.106.0 | Apache-2.0
14009+
** @jsii/check-node@1.107.0 - https://www.npmjs.com/package/@jsii/check-node/v/1.107.0 | Apache-2.0
1401014010
jsii
1401114011
Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1401214012

@@ -26411,7 +26411,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
2641126411

2641226412
----------------
2641326413

26414-
** strnum@1.0.5 - https://www.npmjs.com/package/strnum/v/1.0.5 | MIT
26414+
** strnum@1.1.1 - https://www.npmjs.com/package/strnum/v/1.1.1 | MIT
2641526415
MIT License
2641626416

2641726417
Copyright (c) 2021 Natural Intelligence

packages/@aws-cdk/cli-lib-alpha/package.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk/cli-plugin-contract/package.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)