nx/docs/generated/devkit/getOutputsForTargetAndConfiguration.md
Jason Jean 5740a73cd8
feat(core): add the outputs of a task onto the task (#19561)
Co-authored-by: Jonathan Cammisuli <jon@cammisuli.ca>
2023-10-11 23:21:14 -04:00

35 lines
1.4 KiB
Markdown

# Function: getOutputsForTargetAndConfiguration
**getOutputsForTargetAndConfiguration**(`task`, `node`): `string`[]
#### Parameters
| Name | Type |
| :----- | :-------------------------------------------------------------------------- |
| `task` | [`Task`](../../devkit/documents/Task) |
| `node` | [`ProjectGraphProjectNode`](../../devkit/documents/ProjectGraphProjectNode) |
#### Returns
`string`[]
**`Deprecated`**
Pass the target and overrides instead. This will be removed in v18.
**getOutputsForTargetAndConfiguration**(`target`, `overrides`, `node`): `string`[]
Returns the list of outputs that will be cached.
#### Parameters
| Name | Type |
| :---------- | :----------------------------------------------------------------------------------------------------------------- |
| `target` | [`Task`](../../devkit/documents/Task) \| { `configuration?`: `string` ; `project`: `string` ; `target`: `string` } |
| `overrides` | `any` |
| `node` | [`ProjectGraphProjectNode`](../../devkit/documents/ProjectGraphProjectNode) |
#### Returns
`string`[]