Commit dd4e9fb
committed
feat(@schematics/angular): add use-library-builder migration to migrate 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.1 parent 84705ee commit dd4e9fb
4 files changed
Lines changed: 904 additions & 0 deletions
File tree
- packages/schematics/angular
- migrations
- use-library-builder
- utility
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
32 | 39 | | |
33 | 40 | | |
34 | 41 | | |
0 commit comments