Skip to content

Commit

Permalink
fix(misc): mark workspace-lint as deprecated in yargs config
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentEnder committed Apr 18, 2023
1 parent 5a0a4e8 commit 99ab36c
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 @@ -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);
Expand Down

0 comments on commit 99ab36c

Please sign in to comment.