chore: add pkg managers to codemod command

This commit is contained in:
Junior Garcia 2025-01-16 22:17:20 -03:00
parent bdb22b3cd3
commit a3ce89870e
2 changed files with 19 additions and 6 deletions

View File

@ -38,9 +38,16 @@ Additionally, we want to avoid any confusion about our library being created or
We've worked for months to make the migration as seamless as possible. You only need to run one command in your project's root folder:
```bash
npx @heroui/codemod@latest migrate
```
<PackageManagers
commands={{
npm: "npx @heroui/codemod@latest migrate",
pnpm: "pnpm dlx @heroui/codemod@latest migrate",
yarn: "yarn dlx @heroui/codemod@latest migrate",
bun: "bunx --bun @heroui/codemod@latest migrate"
}}
/>
This will automatically update your project to use HeroUI.

View File

@ -21,9 +21,15 @@ The easiest way to migrate your NextUI project to HeroUI is using our official c
Execute the codemod in your project directory:
```bash
npx @heroui/codemod@latest migrate
```
<PackageManagers
commands={{
npm: "npx @heroui/codemod@latest migrate",
pnpm: "pnpm dlx @heroui/codemod@latest migrate",
yarn: "yarn dlx @heroui/codemod@latest migrate",
bun: "bunx --bun @heroui/codemod@latest migrate"
}}
/>
> **Note:** If you're using a monorepo, run the codemod from the root directory