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:
parent
2a4984cf7c
commit
77c9e3abee
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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?: {
|
||||
|
||||
@ -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`,
|
||||
],
|
||||
});
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user