@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 similar to 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.

tailwindConfig

string

The full path for the Tailwind configuration file, relative to the workspace root. If not provided and a tailwind.config.js file exists in the project or workspace root, it will be used. Otherwise, Tailwind will not be configured.

watch

boolean
Default: false

Whether to run a build when any file changes.

buildableProjectDepsInPackageJsonType

Deprecated
string
Default: peerDependencies
Accepted values: dependencies, peerDependencies

When updateBuildableProjectDepsInPackageJson is true, this adds dependencies to either peerDependencies or dependencies.

Configure the project to use the '@nx/dependency-checks' ESLint rule instead (https://nx.dev/packages/eslint-plugin/documents/dependency-checks). It will be removed in v17.

updateBuildableProjectDepsInPackageJson

Deprecated
boolean
Default: false

Whether to update the buildable project dependencies in the build output package.json.

Configure the project to use the '@nx/dependency-checks' ESLint rule instead (https://nx.dev/packages/eslint-plugin/documents/dependency-checks). It will be removed in v17.