@nx/angular:package

Builds and packages an Angular library producing an output following the Angular Package Format (APF) to be distributed as an NPM package.

This executor is a drop-in replacement for the @angular-devkit/build-angular:ng-packagr with additional support for incremental builds.

Options can be configured in project.json when defining the executor, or when invoking it. Read more about how to configure targets and executors here: https://nx.dev/reference/project-configuration#targets.

Options

project

Required
string

The file path for the ng-packagr configuration file, relative to the workspace root.

tsConfig

string

The full path for the TypeScript configuration file, relative to the workspace root.

watch

boolean
Default: false

Whether to run a build when any file changes.