Skip to content

Commit dd4e9fb

Browse files
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/migration-collection.json‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@
2929
"version": "22.0.0",
3030
"factory": "./update-workspace-config/migration",
3131
"description": "Update the angular workspace configuration."
32+
},
33+
"use-library-builder": {
34+
"version": "22.3.0",
35+
"factory": "./use-library-builder/migration",
36+
"description": "Migrate library projects from 'ng-packagr' to the new '@angular/build:library' builder.",
37+
"optional": true,
38+
"recommended": false
3239
}
3340
}
3441
}

0 commit comments

Comments
 (0)