Skip to content

fix(@angular/build): resolve secondary entry point README.md from entry point directory - #34315

Closed
alan-agius4 wants to merge 1 commit into
angular:mainfrom
alan-agius4:fix/library-secondary-readme-and-assets
Closed

alan-agius4 wants to merge 1 commit into
angular:mainfrom
alan-agius4:fix/library-secondary-readme-and-assets

Conversation

@alan-agius4

Copy link
Copy Markdown
Collaborator

Resolve the default README.md asset for secondary entry points from path.join(projectRoot, entryPoint.name) instead of path.dirname(entryPoint.entryFilePath) so that secondary entry points with nested entry files (e.g. testing/src/public-api.ts) pick up testing/README.md, matching ng-packagr behavior.

…ry point directory

Resolve the default `README.md` asset for secondary entry points from `path.join(projectRoot, entryPoint.name)` instead of `path.dirname(entryPoint.entryFilePath)` so that secondary entry points with nested entry files (e.g. `testing/src/public-api.ts`) pick up `testing/README.md`, matching `ng-packagr` behavior.
@alan-agius4
alan-agius4 deleted the fix/library-secondary-readme-and-assets branch October 12, 2026 12:58

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request updates the library builder to resolve the input path for copying a secondary entry point's README.md using the project root and the entry point name, rather than the directory of its entry file. Additionally, a unit test has been added to verify that the secondary entry point's README.md is copied correctly by default. There are no review comments to address, and I have no feedback to provide.

@angular-automatic-lock-bot

Copy link
Copy Markdown

This pull request has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Nov 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant