From 9fa6d418b90f8cbe91b23f5d6fa5429811ee58a4 Mon Sep 17 00:00:00 2001 From: Craigory Coppola Date: Wed, 19 Apr 2023 14:06:57 -0400 Subject: [PATCH] fix(misc): mark workspace-lint as deprecated in yargs config (#16385) --- docs/generated/cli/workspace-lint.md | 4 +++- docs/generated/packages/nx/documents/workspace-lint.md | 4 +++- packages/nx/src/command-line/nx-commands.ts | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/generated/cli/workspace-lint.md b/docs/generated/cli/workspace-lint.md index d119c1a14d6d7..c4f1ae20e7a37 100644 --- a/docs/generated/cli/workspace-lint.md +++ b/docs/generated/cli/workspace-lint.md @@ -5,7 +5,9 @@ description: 'Lint nx specific workspace files (nx.json, workspace.json)' # workspace-lint -Lint nx specific workspace files (nx.json, workspace.json) + **Deprecated:** workspace-lint is deprecated, and will be removed in v17. The checks it used to perform are no longer relevant. + + Lint nx specific workspace files (nx.json, workspace.json) ## Usage diff --git a/docs/generated/packages/nx/documents/workspace-lint.md b/docs/generated/packages/nx/documents/workspace-lint.md index d119c1a14d6d7..c4f1ae20e7a37 100644 --- a/docs/generated/packages/nx/documents/workspace-lint.md +++ b/docs/generated/packages/nx/documents/workspace-lint.md @@ -5,7 +5,9 @@ description: 'Lint nx specific workspace files (nx.json, workspace.json)' # workspace-lint -Lint nx specific workspace files (nx.json, workspace.json) + **Deprecated:** workspace-lint is deprecated, and will be removed in v17. The checks it used to perform are no longer relevant. + + Lint nx specific workspace files (nx.json, workspace.json) ## Usage diff --git a/packages/nx/src/command-line/nx-commands.ts b/packages/nx/src/command-line/nx-commands.ts index c2c1872ff69eb..2584106a70930 100644 --- a/packages/nx/src/command-line/nx-commands.ts +++ b/packages/nx/src/command-line/nx-commands.ts @@ -261,6 +261,8 @@ export const commandsObject = yargs .command({ command: 'workspace-lint [files..]', describe: 'Lint nx specific workspace files (nx.json, workspace.json)', + deprecated: + 'workspace-lint is deprecated, and will be removed in v17. The checks it used to perform are no longer relevant.', handler: async () => { await (await import('./lint')).workspaceLint(); process.exit(0);