fix(core): update custom task runner deprecation message (#30093)

<!-- 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
-->

<img width="561" alt="image"
src="https://github.com/user-attachments/assets/b343bc83-6423-4924-8695-a621cf98be11"
/>


## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
This commit is contained in:
Juri Strumpflohner 2025-02-19 14:03:15 +01:00 committed by GitHub
parent 2a4984cf7c
commit 77c9e3abee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 6 additions and 7 deletions

View File

@ -271,7 +271,7 @@ Dependencies between different target names across all projects
**`Deprecated`**
Custom task runners will no longer be supported in Nx 21. Use Nx Cloud or Nx Powerpack instead.
Custom task runners will be replaced by a new API starting with Nx 21. More info: https://nx.dev/deprecated/custom-tasks-runner
Available Task Runners for Nx to use
#### Index signature

View File

@ -371,7 +371,7 @@ Dependencies between different target names across all projects
**`Deprecated`**
Custom task runners will no longer be supported in Nx 21. Use Nx Cloud or Nx Powerpack instead.
Custom task runners will be replaced by a new API starting with Nx 21. More info: https://nx.dev/deprecated/custom-tasks-runner
Available Task Runners for Nx to use
#### Index signature

View File

@ -417,7 +417,7 @@ export interface NxJsonConfiguration<T = '*' | string[]> {
appsDir?: string;
};
/**
* @deprecated Custom task runners will no longer be supported in Nx 21. Use Nx Cloud or Nx Powerpack instead.
* @deprecated Custom task runners will be replaced by a new API starting with Nx 21. More info: https://nx.dev/deprecated/custom-tasks-runner
* Available Task Runners for Nx to use
*/
tasksRunnerOptions?: {

View File

@ -828,10 +828,9 @@ export function getRunner(
try {
if (isCustomRunnerPath(modulePath)) {
output.warn({
title: `Custom task runners will no longer be supported in Nx 21.`,
title: `Custom task runners will be replaced by a new API starting with Nx 21.`,
bodyLines: [
`Use Nx Cloud or the Nx Powerpack caches instead.`,
`For more information, see https://nx.dev/nx-enterprise/powerpack/custom-caching`,
`For more information, see https://nx.dev/deprecated/custom-tasks-runner`,
],
});
}

View File

@ -16,7 +16,7 @@ export interface NxArgs {
targets?: string[];
configuration?: string;
/**
* @deprecated Custom task runners will no longer be supported in Nx 21. Use Nx Cloud or Nx Powerpack instead.
* @deprecated Custom task runners will be replaced by a new API starting with Nx 21. More info: https://nx.dev/deprecated/custom-tasks-runner
*/
runner?: string;
parallel?: number;