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 19, 2023
1 parent c8960b7 commit 6ac3f03
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 6ac3f03

Please sign in to comment.