57 lines
1.5 KiB
Markdown
57 lines
1.5 KiB
Markdown
---
|
|
title: '@nrwl/angular:package executor'
|
|
description: 'Builds and packages an Angular library to be distributed as an NPM package. It supports incremental builds.'
|
|
---
|
|
|
|
# @nrwl/angular:package
|
|
|
|
Builds and packages an Angular library to be distributed as an NPM package. It supports incremental builds.
|
|
|
|
Options can be configured in `workspace.json` when defining the executor, or when invoking it. Read more about how to configure targets and executors here: https://nx.dev/configuration/projectjson#targets.
|
|
|
|
## Options
|
|
|
|
### project (_**required**_)
|
|
|
|
Type: `string`
|
|
|
|
The file path for the ng-packagr configuration file, relative to the workspace root.
|
|
|
|
### buildableProjectDepsInPackageJsonType
|
|
|
|
Default: `peerDependencies`
|
|
|
|
Type: `string`
|
|
|
|
Possible values: `dependencies`, `peerDependencies`
|
|
|
|
When `updateBuildableProjectDepsInPackageJson` is `true`, this adds dependencies to either `peerDependencies` or `dependencies`.
|
|
|
|
### tailwindConfig
|
|
|
|
Type: `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.
|
|
|
|
### tsConfig
|
|
|
|
Type: `string`
|
|
|
|
The full path for the TypeScript configuration file, relative to the workspace root.
|
|
|
|
### updateBuildableProjectDepsInPackageJson
|
|
|
|
Default: `true`
|
|
|
|
Type: `boolean`
|
|
|
|
Whether to update the buildable project dependencies in package.json.
|
|
|
|
### watch
|
|
|
|
Default: `false`
|
|
|
|
Type: `boolean`
|
|
|
|
Whether to run a build when any file changes.
|