Skip to content

fix: include README and docs in package publishing#1510

Merged
daniel-vdp merged 4 commits into
mainfrom
feature/fix-readme-publishing
Jul 23, 2025
Merged

fix: include README and docs in package publishing#1510
daniel-vdp merged 4 commits into
mainfrom
feature/fix-readme-publishing

Conversation

@daniel-vdp

Copy link
Copy Markdown
Contributor

Summary

  • Updated all 13 project.json files to include README.md and documentation assets in build targets
  • Ensures that when packages are built, their documentation is copied to the dist/ directory
  • Documentation will now be included when packages are published to npm

Problem

Previously, when CDK construct packages were published to npm, README files and documentation assets were missing because they weren't included in the build output.

Solution

Added README files and documentation assets (docs/, *.png, *.jpeg) to the assets array in each package's project.json build configuration.

Test Plan

  • Built static-hosting package and verified README.md and docs/ directory are copied to dist/
  • All linting checks pass
  • Existing Lambda handler assets are preserved

Affected Packages

All 13 packages in the monorepo:

  • basic-auth, cloudfront-security-headers, esbuild, feature-env-handlers
  • geoip-redirect, graphql-mesh-server, header-change-detection, prerender-fargate
  • prerender-proxy, rabbitmq, shared-vpc, static-hosting, waf

🤖 Generated with Claude Code

- Updated all project.json files to include README.md in build assets
- Added docs/ directories and image files to assets for packages that have them
- Ensures documentation is available to consumers when packages are published to npm

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@daniel-vdp daniel-vdp requested a review from a team as a code owner July 22, 2025 05:50
- Moved diagrams from package roots to docs/ directories for consistency
- Updated README reference in prerender-fargate for moved diagram
- Updated project.json assets to reference docs/ directories instead of individual files
- Ensures all packages follow the same documentation structure

Affected packages:
- prerender-fargate: tokenSecret.png → docs/tokenSecret.png
- rabbitmq: CDKPipeline-RabbitMQ.jpeg → docs/CDKPipeline-RabbitMQ.jpeg
- waf: CdkPipelineCrossAccountDeploy.jpeg → docs/CdkPipelineCrossAccountDeploy.jpeg

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@daniel-vdp daniel-vdp force-pushed the feature/fix-readme-publishing branch from 584732b to 588f033 Compare July 22, 2025 06:00
Daniel van der Ploeg and others added 2 commits July 22, 2025 15:36
- Fixed multiline array formatting in rabbitmq and waf project.json files
- Ensures linting passes for all packages in CI pipeline

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

@crispy101 crispy101 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@daniel-vdp daniel-vdp merged commit 6b2b89c into main Jul 23, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants