Skip to content

Commit

Permalink
fix(misc): mark workspace-lint as deprecated in yargs config (nrwl#16385
Browse files Browse the repository at this point in the history
)
  • Loading branch information
AgentEnder committed Apr 19, 2023
1 parent 9c9abaa commit 9fa6d41
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docs/generated/cli/workspace-lint.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 3 additions & 1 deletion docs/generated/packages/nx/documents/workspace-lint.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions packages/nx/src/command-line/nx-commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9fa6d41

Please sign in to comment.