Unverified Commit 3d3f02ec authored by Jiachi Liu's avatar Jiachi Liu Committed by GitHub

fix missing command in next-codemod (#67216)

Running `pnpx @next/codemod@canary next-dynamic-access-named-export`
found the following error

```
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-og-import
- metadata-to-viewport-export
- next-image-to-legacy-image
- next-image-experimental
- built-in-next-font
```

Turns out we're missing it in cli command list
parent 72a64081
......@@ -143,6 +143,10 @@ const TRANSFORMER_INQUIRER_CHOICES = [
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-dynamic-access-named-export: Transforms dynamic imports that return the named export itself to a module like object.',
value: 'next-dynamic-access-named-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