2021-07-01 10:07:43 +01:00

47 lines
1.1 KiB
Markdown

# package
Builds and packages an Angular library to be distributed as an NPM package. It supports incremental builds.
Properties can be configured in workspace.json when defining the executor, or when invoking it.
Read more about how to use executors and the CLI here: https://nx.dev/react/getting-started/nx-cli#running-tasks.
## Properties
### buildableProjectDepsInPackageJsonType
Default: `peerDependencies`
Type: `string`
Possible values: `dependencies`, `peerDependencies`
When `updateBuildableProjectDepsInPackageJson` is `true`, this adds dependencies to either `peerDependencies` or `dependencies`.
### project
Type: `string`
The file path for the ng-packagr configuration file, relative to the workspace root.
### 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.