Skip to content

Commit

Permalink
docs(core): add more to repair's command-object describe (#18602)
Browse files Browse the repository at this point in the history
Co-authored-by: Isaac Mann <isaacplmann@gmail.com>
Co-authored-by: Isaac Mann <isaacplmann@users.noreply.github.com>
  • Loading branch information
3 people committed Sep 7, 2023
1 parent 2cc40a1 commit b8bc460
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 3 deletions.
19 changes: 18 additions & 1 deletion docs/generated/cli/repair.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,29 @@
---
title: 'repair - CLI command'
description: 'Repair any configuration that is no longer supported by Nx.'
description: 'Repair any configuration that is no longer supported by Nx.
Specifically, this will run every migration within the `nx` package
against the current repository. Doing so should fix any configuration
details left behind if the repository was previously updated to a new
Nx version without using `nx migrate`.
If your repository has only ever updated to newer versions of Nx with
`nx migrate`, running `nx repair` should do nothing.
'
---

# repair

Repair any configuration that is no longer supported by Nx.

Specifically, this will run every migration within the `nx` package
against the current repository. Doing so should fix any configuration
details left behind if the repository was previously updated to a new
Nx version without using `nx migrate`.

If your repository has only ever updated to newer versions of Nx with
`nx migrate`, running `nx repair` should do nothing.

## Usage

```shell
Expand Down
19 changes: 18 additions & 1 deletion docs/generated/packages/nx/documents/repair.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,29 @@
---
title: 'repair - CLI command'
description: 'Repair any configuration that is no longer supported by Nx.'
description: 'Repair any configuration that is no longer supported by Nx.
Specifically, this will run every migration within the `nx` package
against the current repository. Doing so should fix any configuration
details left behind if the repository was previously updated to a new
Nx version without using `nx migrate`.
If your repository has only ever updated to newer versions of Nx with
`nx migrate`, running `nx repair` should do nothing.
'
---

# repair

Repair any configuration that is no longer supported by Nx.

Specifically, this will run every migration within the `nx` package
against the current repository. Doing so should fix any configuration
details left behind if the repository was previously updated to a new
Nx version without using `nx migrate`.

If your repository has only ever updated to newer versions of Nx with
`nx migrate`, running `nx repair` should do nothing.

## Usage

```shell
Expand Down
11 changes: 10 additions & 1 deletion packages/nx/src/command-line/repair/command-object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,16 @@ import { linkToNxDevAndExamples } from '../yargs-utils/documentation';

export const yargsRepairCommand: CommandModule = {
command: 'repair',
describe: 'Repair any configuration that is no longer supported by Nx.',
describe: `Repair any configuration that is no longer supported by Nx.
Specifically, this will run every migration within the \`nx\` package
against the current repository. Doing so should fix any configuration
details left behind if the repository was previously updated to a new
Nx version without using \`nx migrate\`.
If your repository has only ever updated to newer versions of Nx with
\`nx migrate\`, running \`nx repair\` should do nothing.
`,
builder: (yargs) =>
linkToNxDevAndExamples(yargs, 'repair').option('verbose', {
type: 'boolean',
Expand Down

1 comment on commit b8bc460

@vercel
Copy link

@vercel vercel bot commented on b8bc460 Sep 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-nrwl.vercel.app
nx-five.vercel.app
nx.dev
nx-dev-git-master-nrwl.vercel.app

Please sign in to comment.