Unverified Commit ec8ee596 authored by Lee Robinson's avatar Lee Robinson Committed by GitHub

Add Next.js 14 codemods to CLI output. (#57552)

Following the documentation:

```
▲  commerce/ npx @next/codemod@latest next-og-import .
Invalid transform choice, pick one of:
- name-default-component
- add-missing-react-import
- withamp-to-config
- url-to-withrouter
- cra-to-next
- new-link
- next-image-to-legacy-image
- next-image-experimental
- built-in-next-font
```
parent 058f6f1c
......@@ -135,6 +135,14 @@ const TRANSFORMER_INQUIRER_CHOICES = [
name: 'new-link: Ensures your <Link> usage is backwards compatible.',
value: 'new-link',
},
{
name: 'next-og-import: Transforms imports from `next/server` to `next/og` for usage of Dynamic OG Image Generation.',
value: 'next-og-import',
},
{
name: 'metadata-to-viewport-export: Migrates certain viewport related metadata from the `metadata` export to a new `viewport` export.',
value: 'metadata-to-viewport-export',
},
{
name: 'next-image-to-legacy-image: safely migrate Next.js 10, 11, 12 applications importing `next/image` to the renamed `next/legacy/image` import in Next.js 13',
value: 'next-image-to-legacy-image',
......
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