rsnext/packages/next-codemod
Hannes Bornö f1f0e78428
Add next/font imports codemod (#45740)
Add `built-in-next-font` codemod that transforms `@next/font` imports to
`next/font` and then uninstalls the `@next/font` package.

Tested locally with npm, yarn and pnpm.

Fixes NEXT-453

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have a helpful link attached, see
[`contributing.md`](https://github.com/vercel/next.js/blob/canary/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`
- [ ]
[e2e](https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs)
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`](https://github.com/vercel/next.js/blob/canary/contributing.md)

## Documentation / Examples

- [ ] 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)
2023-02-16 15:39:19 +01:00
..
bin Add next/font imports codemod (#45740) 2023-02-16 15:39:19 +01:00
lib Add next/font imports codemod (#45740) 2023-02-16 15:39:19 +01:00
transforms Add next/font imports codemod (#45740) 2023-02-16 15:39:19 +01:00
.gitignore Move next-codemod to Next.js monorepo (#15536) 2020-08-10 11:14:53 +02:00
license.md Update license year (#44403) 2023-01-01 11:12:49 +01:00
package.json v13.1.7-canary.15 2023-02-15 11:13:27 +01:00
README.md Add codemod documentation (#16067) 2020-08-11 15:12:00 +02:00
tsconfig.json Move next-codemod to Next.js monorepo (#15536) 2020-08-10 11:14:53 +02:00

Next.js Codemods

Next.js provides Codemod transformations to help upgrade your Next.js codebase when a feature is deprecated.

Codemods are transformations that run on your codebase programmatically. This allows for a large amount of changes to be applied without having to manually go through every file.

Documentation

Visit nextjs.org/docs/advanced-features/codemods to view the documentation for this package.