From 6ac3f0301e0e54fab6786251fce3dd5f5b081573 Mon Sep 17 00:00:00 2001 From: Craigory Coppola Date: Tue, 18 Apr 2023 18:05:25 -0400 Subject: [PATCH] fix(misc): mark workspace-lint as deprecated in yargs config --- 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 3c1a2eac6ecec..a72d9b11a7488 100644 --- a/packages/nx/src/command-line/nx-commands.ts +++ b/packages/nx/src/command-line/nx-commands.ts @@ -263,6 +263,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);