@nrwl/angular:ng-packagr-lite
ng-packagr target options for Build Architect. Use to build library projects.
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/configuration/projectjson#targets.
Options playground
This is an example of what the properties looks like and their values. Go ahead and try, test your configuration this is a live-edit window, you can interact directly and get intellisense on property's values.
Examples
Here are some examples to tinker with specific usages that could be useful:
Options
buildableProjectDepsInPackageJsonType
peerDependencies
dependencies
, peerDependencies
When updateBuildableProjectDepsInPackageJson
is true
, this adds dependencies to either peerDependencies
or dependencies
.
project
The file path for the ng-packagr configuration file, relative to the workspace root.
tsConfig
The full path for the TypeScript configuration file, relative to the workspace root.
tailwindConfig
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.
updateBuildableProjectDepsInPackageJson
true
Whether to update the buildable project dependencies in package.json.
watch
false
Whether to run a build when any file changes.