Skip to content

feat(@schematics/angular): add use-library-builder migration to migrate from ng-packagr - #34232

Draft
alan-agius4 wants to merge 1 commit into
angular:mainfrom
alan-agius4:feat/use-library-builder-migration
Draft

alan-agius4 wants to merge 1 commit into
angular:mainfrom
alan-agius4:feat/use-library-builder-migration

Conversation

@alan-agius4

Copy link
Copy Markdown
Collaborator

Adds an optional migration for v22.3.0 to migrate library projects from ng-packagr to the @angular/build:library builder.

The migration:

  • Discovers and converts primary and secondary entry points into the library package.json exports map.
  • Migrates assets and style preprocessor options from ng-package.json.
  • Configures compilationMode: 'full' and declarationMap: true for the development configuration.
  • Deletes ng-package.json files and removes ngPackage from package.json.
  • Removes ng-packagr dependency and ensures @angular/build is present when no other ng-packagr targets remain.

@angular-robot angular-robot Bot added detected: feature PR contains a feature commit area: @schematics/angular labels Oct 1, 2026
@alan-agius4
alan-agius4 force-pushed the feat/use-library-builder-migration branch 2 times, most recently from f08895d to 8a5e256 Compare October 1, 2026 12:05
@alan-agius4 alan-agius4 added the target: minor This PR is targeted for the next minor release label Oct 1, 2026
@alan-agius4
alan-agius4 force-pushed the feat/use-library-builder-migration branch from 8a5e256 to dd4e9fb Compare October 1, 2026 12:32
…te from ng-packagr

Adds an optional migration for v22.3.0 to migrate library projects from
ng-packagr to the @angular/build:library builder.

The migration:
- Discovers and converts primary and secondary entry points into the library package.json exports map.
- Migrates assets and style preprocessor options from ng-package.json.
- Configures compilationMode: 'full' and declarationMap: true for the development configuration.
- Deletes ng-package.json files and removes ngPackage from package.json.
- Removes ng-packagr dependency and ensures @angular/build is present when no other ng-packagr targets remain.
@alan-agius4
alan-agius4 force-pushed the feat/use-library-builder-migration branch from dd4e9fb to c6c9faf Compare October 1, 2026 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

1 participant