Skip to content

Commit

Permalink
added @latest to codemods page (#42091)
Browse files Browse the repository at this point in the history
https://nextjs.org/docs/advanced-features/codemods

![CleanShot 2022-10-28 at 13 38 45@2x](https://user-images.githubusercontent.com/481891/198740849-00ee89aa-9618-41c9-b388-eb15d215e254.png)

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have a helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have a helpful link attached, see `contributing.md`

## Documentation / Examples



- [x] Update docs
- [ ] Make sure the linting passes by running `pnpm build && pnpm lint`
- [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
  • Loading branch information
ismaelrumzan committed Oct 28, 2022
1 parent e2e1048 commit 90f0f72
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/advanced-features/codemods.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Codemods are transformations that run on your codebase programmatically. This al

## Usage

`npx @next/codemod <transform> <path>`
`npx @next/codemod@latest <transform> <path>`

- `transform` - name of transform, see available transforms below.
- `path` - files or directory to transform
Expand Down Expand Up @@ -254,7 +254,7 @@ cd path-to-your-project/
Run the codemod:

```
npx @next/codemod name-default-component
npx @next/codemod@latest name-default-component
```

### `withamp-to-config`
Expand Down Expand Up @@ -296,7 +296,7 @@ cd path-to-your-project/
Run the codemod:

```
npx @next/codemod withamp-to-config
npx @next/codemod@latest withamp-to-config
```

## Next.js 6
Expand Down Expand Up @@ -345,5 +345,5 @@ cd path-to-your-project/
Run the codemod:

```
npx @next/codemod url-to-withrouter
npx @next/codemod@latest url-to-withrouter
```

0 comments on commit 90f0f72

Please sign in to comment.