Skip to content

Commit

Permalink
revert: adding --legacy-peer-deps (#2030)
Browse files Browse the repository at this point in the history
* Revert "fix: npm init `@rainbow-me/rainbowkit@latest` not working (#1954)"

This reverts commit ef53ede.

* chore: changeset
  • Loading branch information
magiziz authored Jun 12, 2024
1 parent 49436e0 commit 3fc2ec4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/rare-steaks-invite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rainbow-me/create-rainbowkit": patch
---

Reverted the addition of the `--legacy-peer-deps` flag because the conflict with wagmi peer dependencies no longer exists.
5 changes: 2 additions & 3 deletions packages/create-rainbowkit/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,18 +185,17 @@ async function run() {
)}. This could take a while.`,
),
);
const flag = packageManager === 'npm' ? '--legacy-peer-deps' : undefined;
await execa(packageManager, ['install', ...(flag ? [flag] : [])], {
await execa(packageManager, ['install'], {
cwd: targetPath,
stdio: 'inherit',
});

if (process.env.INSTALL_WORKSPACE_RAINBOWKIT !== 'true') {
await execa(
packageManager,
[
packageManager === 'yarn' ? 'add' : 'install',
'@rainbow-me/rainbowkit',
...(flag ? [flag] : []),
],
{
cwd: targetPath,
Expand Down

0 comments on commit 3fc2ec4

Please sign in to comment.