Skip to content

feat(@schematics/angular): use library builder and add entry-point schematic - #34645

Open
alan-agius4 wants to merge 6 commits into
angular:mainfrom
alan-agius4:feat/library-builder-and-entry-point-schematic
Open

alan-agius4 wants to merge 6 commits into
angular:mainfrom
alan-agius4:feat/library-builder-and-entry-point-schematic

Conversation

@alan-agius4

@alan-agius4 alan-agius4 commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Updates the library schematic to configure @angular/build:library with a single tsconfig.lib.json and introduces an entry-point schematic to generate library entry points under src/<name>/.

Closes #19070

@angular-robot angular-robot Bot added detected: feature PR contains a feature commit area: @schematics/angular labels Nov 3, 2026
@alan-agius4
alan-agius4 marked this pull request as draft November 3, 2026 10:40

@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 introduces a new "entry-point" schematic to generate secondary entry points for Angular libraries, and transitions the library schematic to use the "@angular/build:library" builder instead of "ng-packagr" configuration files. Feedback is provided to deduplicate path mappings in "tsconfig.json" when updating the configuration to prevent duplicate entries upon multiple runs.

@alan-agius4 alan-agius4 added the target: minor This PR is targeted for the next minor release label Nov 3, 2026
…hematic

Update the library schematic to configure @angular/build:library with a single tsconfig.lib.json instead of @angular/build:ng-packagr, and add an entry-point schematic to generate secondary entry points under src/<name>/.
@alan-agius4
alan-agius4 force-pushed the feat/library-builder-and-entry-point-schematic branch from f95c4e5 to c033dbc Compare November 5, 2026 09:22
@alan-agius4 alan-agius4 added the action: review The PR is still awaiting reviews from at least one requested reviewer label Nov 5, 2026
@alan-agius4
alan-agius4 requested a review from clydin November 5, 2026 09:24
@alan-agius4
alan-agius4 marked this pull request as ready for review November 5, 2026 09:25

@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 introduces a new 'entry-point' schematic to generate secondary entry points for Angular libraries, and refactors the existing 'library' schematic to use this new schematic for generating the primary entry point. It also replaces the 'ng-packagr' builder with the new '@angular/build:library' builder, removing obsolete configuration files like 'ng-package.json' and 'tsconfig.lib.prod.json'. Feedback on the changes suggests making the path resolution for 'tsConfigPathTarget' in the 'entry-point' schematic more robust by checking for existing relative or absolute path prefixes before prepending './'.

@alan-agius4
alan-agius4 force-pushed the feat/library-builder-and-entry-point-schematic branch from 60ae3e1 to b4486a5 Compare November 5, 2026 11:41
@alan-agius4
alan-agius4 requested a review from clydin November 5, 2026 15:06
@alan-agius4
alan-agius4 force-pushed the feat/library-builder-and-entry-point-schematic branch from 1a5df35 to 98c90c5 Compare November 6, 2026 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: review The PR is still awaiting reviews from at least one requested reviewer area: @angular/build area: @schematics/angular detected: feature PR contains a feature commit target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Library secondary entry-point generation

2 participants