Skip to content

Commit 5a3db2d

Browse files
authored
feat: compress aws-cdk-lib tablet file (#21854)
This is part of the Reduce Module Size [project](https://github.com/aws/aws-cdk/projects/15). Most of the heavy lifting is done in jsii, this PR simply turns on the feature. I have tested this in our test pipeline and can confirm that the build output from there can be successfully ingested by contruct hub with transliterated examples in every language. Afaik, the tablet file included in the `aws-cdk-lib` package is _only_ for construct hub, because reproducing the tablet file would take ~3 hours. Title is a `feat` so that it shows up in the changelog; there are no unit or integ tests that can be run to demonstrate it is working. ---- ### All Submissions: * [ ] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)? * [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 572f781 commit 5a3db2d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/run-rosetta.sh

+2
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ echo "💎 Extracting code samples" >&2
6868
time $ROSETTA extract \
6969
--compile \
7070
--verbose \
71+
--compress-tablet \
7172
--cache ${rosetta_cache_file} \
7273
--directory packages/aws-cdk-lib \
7374
${extract_opts} \
@@ -81,6 +82,7 @@ if $infuse; then
8182
time $ROSETTA extract \
8283
--compile \
8384
--verbose \
85+
--compress-tablet \
8486
--cache ${rosetta_cache_file} \
8587
--directory packages/aws-cdk-lib \
8688
$(cat $jsii_pkgs_file)

0 commit comments

Comments
 (0)