Skip to content

Commit cd54c42

Browse files
authored
fix(core): core constructs fail with Error: Cannot find module '../dist/core/<file>.generated' (#28467)
#28251 added new files to `aws-cdk-lib/core/lib/dist/core` but this path was excluded from the npm package, causing the above error. This fix includes the generated file into the package. Closes #28465 Manually tested with a locally build package that includes the fix. <img width="1449" alt="image" src="https://github.com/aws/aws-cdk/assets/379814/11714c41-edea-403e-9b64-454ba9768c08"> ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 6824513 commit cd54c42

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/aws-cdk-lib/.npmignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ coverage
1616
build-tools
1717
dist
1818
!custom-resource-handlers/dist/
19+
!core/lib/dist/
1920
scripts
2021
.LAST_BUILD
2122
.LAST_PACKAGE
@@ -30,9 +31,11 @@ tsconfig.json
3031
# exclude cdk artifacts
3132
**/cdk.out
3233
junit.xml
33-
3434
!*.lit.ts
3535

36+
# exclude additional documention
37+
core/adr/
38+
3639
# keep class map for cloudformation-include
3740
!cloudformation-include/cfn-types-2-classes.json
3841

0 commit comments

Comments
 (0)