Skip to content

Commit 2acc9fe

Browse files
committed
fix(@schematics/angular): update library schematic to use @angular-devkit/build-angular:ng-packagr
The library schematic currently relies on Karma, which requires `@angular-devkit/build-angular` to be installed. To address this, we now use the `ng-packagr` builder provided in this package. Closes angular#29494
1 parent 4df97d1 commit 2acc9fe

File tree

1 file changed

+3
-3
lines changed
  • packages/schematics/angular/library

1 file changed

+3
-3
lines changed

packages/schematics/angular/library/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ function addDependenciesToPackageJson() {
5353
},
5454
{
5555
type: NodeDependencyType.Dev,
56-
name: '@angular/build',
57-
version: latestVersions.AngularBuild,
56+
name: '@angular-devkit/build-angular',
57+
version: latestVersions.DevkitBuildAngular,
5858
},
5959
{
6060
type: NodeDependencyType.Dev,
@@ -91,7 +91,7 @@ function addLibToWorkspaceFile(
9191
prefix: options.prefix,
9292
targets: {
9393
build: {
94-
builder: Builders.BuildNgPackagr,
94+
builder: Builders.NgPackagr,
9595
defaultConfiguration: 'production',
9696
options: {
9797
project: `${projectRoot}/ng-package.json`,

0 commit comments

Comments
 (0)