Add `poll` option to the ng-packagr executors. This change was made upstream for Angular v18, but it was missed on the Nx executors. <!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #
66 lines
2.7 KiB
JSON
66 lines
2.7 KiB
JSON
{
|
|
"name": "package",
|
|
"implementation": "/packages/angular/src/executors/package/package.impl.ts",
|
|
"schema": {
|
|
"version": 2,
|
|
"outputCapture": "direct-nodejs",
|
|
"$schema": "https://json-schema.org/schema",
|
|
"title": "ng-packagr Target",
|
|
"description": "Builds and packages an Angular library producing an output following the Angular Package Format (APF) to be distributed as an NPM package.\n\nThis executor is a drop-in replacement for the `@angular-devkit/build-angular:ng-packagr` with additional support for incremental builds.",
|
|
"cli": "nx",
|
|
"type": "object",
|
|
"presets": [
|
|
{
|
|
"name": "Publishable Library with Tailwind",
|
|
"keys": [
|
|
"project",
|
|
"tailwindConfig"
|
|
]
|
|
},
|
|
{
|
|
"name": "Updating Project Dependencies for Publishable Library",
|
|
"keys": [
|
|
"project"
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"project": {
|
|
"type": "string",
|
|
"description": "The file path for the ng-packagr configuration file, relative to the workspace root."
|
|
},
|
|
"tsConfig": {
|
|
"type": "string",
|
|
"description": "The full path for the TypeScript configuration file, relative to the workspace root.",
|
|
"x-completion-type": "file",
|
|
"x-completion-glob": "tsconfig.*.json",
|
|
"x-priority": "important"
|
|
},
|
|
"watch": {
|
|
"type": "boolean",
|
|
"description": "Whether to run a build when any file changes.",
|
|
"default": false
|
|
},
|
|
"poll": {
|
|
"type": "number",
|
|
"description": "Enable and define the file watching poll time period in milliseconds. _Note: this is only supported in Angular versions >= 18.0.0_."
|
|
},
|
|
"tailwindConfig": {
|
|
"type": "string",
|
|
"description": "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. _Note: starting with Angular v17, this option is no longer used and the configuration will be picked up if exists at the project or workspace root_.",
|
|
"x-completion-type": "file",
|
|
"x-completion-glob": "tailwind.config@(.js|.cjs|.mjs|.ts)"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"project"
|
|
]
|
|
},
|
|
"description": "Builds and packages an Angular library producing an output following the Angular Package Format (APF) to be distributed as an NPM package.\n\nThis executor is a drop-in replacement for the `@angular-devkit/build-angular:ng-packagr` with additional support for incremental builds.",
|
|
"aliases": [],
|
|
"hidden": false,
|
|
"path": "/packages/angular/src/executors/package/schema.json",
|
|
"type": "executor"
|
|
}
|