Skip to content

chore(build): switch libraries to @angular/build:library - #353

Merged
xidedix merged 1 commit into
v5.7from
chore/use-library-builder
Nov 19, 2026
Merged

xidedix merged 1 commit into
v5.7from
chore/use-library-builder

Conversation

@xidedix

@xidedix xidedix commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

All three libraries now build with @angular/build:library instead of ng-packagr (ng update @angular/cli --name use-library-builder). The fesm2022 bundles and sourcemaps come out byte-identical; the published package.json drops the unused tslib dependency and gains main and types.

The migration also widened include in the icons tsconfig.lib.prod.json; that part is left out, because with rootDir: ./src it pulls in schematics/ and tsc fails with TS6059.

The ng-package.json dest moves to outputPath in angular.json.

`ng update @angular/cli --name use-library-builder` for all three
libraries:

- build target `@angular/build:ng-packagr` -> `@angular/build:library`,
  ng-package.json options moved to angular.json, files removed
- `exports` entry in each library package.json
- `tslib` dropped from library dependencies; no bundle imports it
- `ng-packagr` dropped from devDependencies

The include widening in coreui-icons-angular tsconfig.lib.prod.json is
not taken: with rootDir ./src it pulls schematics/ in and tsc fails
with TS6059. All entry points are under src/.

Built output: fesm2022 bundles and sourcemaps byte-identical; dist
package.json gains `main`/`types` and loses `tslib`; .d.ts differs only
in the generated header comment and one local type reference.
@xidedix
xidedix merged commit 76441a5 into v5.7 Nov 19, 2026
9 checks passed
@xidedix
xidedix deleted the chore/use-library-builder branch November 19, 2026 11:30
xidedix added a commit that referenced this pull request Nov 19, 2026
- fix(Dropdown): keep the menu shown when visible flips back before the effect runs (#351)
- fix(ChipInput): run template validators once with `@angular/forms` 22.3; peer dependencies require Angular `^22.3.0` (#352)
- chore(build): switch libraries to `@angular/build:library` (#353)
- chore(dependencies): update to Angular 22.3.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant