Skip to content

Commit

Permalink
chore: use fixed deprecated list for strip-deprecated (aws#17260)
Browse files Browse the repository at this point in the history
This is a continuation (and the final piece!) of aws/jsii#3085 and aws#17120.

Changes cdk-build to use the fixed deprecated list, rather than stripping all
deprecated elements. This will enable us to deprecate new elements going forward
without stripping them from v2 and breaking customers.

closes aws#16566


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
njlynch authored and TikiTDO committed Feb 21, 2022
1 parent 7c9b5b5 commit 797788a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/@aws-cdk/cdk-build-tools/lib/package-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export function packageCompiler(compilers: CompilerOverrides, options?: CDKBuild
if (isJsii()) {
const args = ['--silence-warnings=reserved-word'];
if (options?.stripDeprecated) {
args.push('--strip-deprecated');
args.push(`--strip-deprecated ${path.join(__dirname, '..', '..', '..', '..', 'deprecated_apis.txt')}`);
}
return [compilers.jsii || require.resolve('jsii/bin/jsii'), ...args];
} else {
Expand Down

0 comments on commit 797788a

Please sign in to comment.