Unverified Commit 90f0f72c authored by Ismael's avatar Ismael Committed by GitHub

added @latest to codemods page (#42091)



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)
parent e2e1048b
...@@ -10,7 +10,7 @@ Codemods are transformations that run on your codebase programmatically. This al ...@@ -10,7 +10,7 @@ Codemods are transformations that run on your codebase programmatically. This al
## Usage ## Usage
`npx @next/codemod <transform> <path>` `npx @next/codemod@latest <transform> <path>`
- `transform` - name of transform, see available transforms below. - `transform` - name of transform, see available transforms below.
- `path` - files or directory to transform - `path` - files or directory to transform
...@@ -254,7 +254,7 @@ cd path-to-your-project/ ...@@ -254,7 +254,7 @@ cd path-to-your-project/
Run the codemod: Run the codemod:
``` ```
npx @next/codemod name-default-component npx @next/codemod@latest name-default-component
``` ```
### `withamp-to-config` ### `withamp-to-config`
...@@ -296,7 +296,7 @@ cd path-to-your-project/ ...@@ -296,7 +296,7 @@ cd path-to-your-project/
Run the codemod: Run the codemod:
``` ```
npx @next/codemod withamp-to-config npx @next/codemod@latest withamp-to-config
``` ```
## Next.js 6 ## Next.js 6
...@@ -345,5 +345,5 @@ cd path-to-your-project/ ...@@ -345,5 +345,5 @@ cd path-to-your-project/
Run the codemod: Run the codemod:
``` ```
npx @next/codemod url-to-withrouter npx @next/codemod@latest url-to-withrouter
``` ```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment