Brian 3f436fc6d0
feat(core): add flag to set dependant libs in either peerDependencies or dependencies (#3078)
* feat(core): add flag to set dependant libs in either peerDependencies or dependencies

* fix(core): mark new property as optional

* feat(core): add migration for new option

* Update migrations.json

Co-authored-by: Jonathan Cammisuli <jon@cammisuli.ca>
2020-09-30 10:36:35 -04:00

955 B

package

Build an Angular library

Builder properties can be configured in workspace.json when defining the builder, or when invoking it. Read more about how to use builders and the CLI here: https://nx.dev/react/guides/cli.

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 current workspace.

tsConfig

Type: string

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

updateBuildableProjectDepsInPackageJson

Default: true

Type: boolean

Update buildable project dependencies in package.json

watch

Default: false

Type: boolean

Run build when files change.