rsnext/packages/next-codemod/lib
Sukka d8c4700a37
refactor(codemod): replace chalk with picocolors (#53115)
The PR replaces `chalk` inside `@next/codemod` with `picocolors`.

Generally, `@next/codemod` is used through `npx`/`pnpx` as it serves as a sort of "one-time fix". By replacing `chalk` with the `picocolors` (which is 14 times smaller and 2 times faster), we can speed up the installation process of `npx @next/codemod`.

Currently, `@next/codemod` has about 10k downloads per week, so I guess this PR is worth it:

<img width="441" alt="image" src="https://github.com/vercel/next.js/assets/40715044/a32fd6e0-bbe6-48e8-985d-83393c141b23">

In my next PR, I will replace `chalk` inside `create-next-app` with `picocolors` as well.
2023-07-24 17:56:45 +00:00
..
cra-to-next fix: next-image-experimental codemod (#45970) 2023-02-17 01:36:09 +00:00
html-to-react-attributes.ts Add experimental cra-to-next transform in codemod cli (#24969) 2021-06-09 16:51:56 +02:00
install.ts refactor(codemod): replace chalk with picocolors (#53115) 2023-07-24 17:56:45 +00:00
run-jscodeshift.ts Fix failing Runner import (#26172) 2021-06-16 14:01:48 +02:00
uninstall-package.ts Add next/font imports codemod (#45740) 2023-02-16 15:39:19 +01:00