Skip to content

Commit

Permalink
feat: add .npmrc to create-wagmi templates (#3871)
Browse files Browse the repository at this point in the history
feat: add .npmrc to create-wagmi templates
  • Loading branch information
jxom committed Apr 30, 2024
1 parent d4a78eb commit 0e6bd28
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/eighty-insects-love.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-wagmi": patch
---

Added `.npmrc` with `legacy-peer-deps = true` to templates.
1 change: 1 addition & 0 deletions packages/create-wagmi/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const cwd = process.cwd()
const renameFiles: Record<string, string | undefined> = {
'_env.local': '.env.local',
_gitignore: '.gitignore',
_npmrc: '.npmrc',
}

const defaultTargetDir = 'wagmi-project'
Expand Down
1 change: 1 addition & 0 deletions packages/create-wagmi/templates/next/_npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps = true
1 change: 1 addition & 0 deletions packages/create-wagmi/templates/vite-react/_npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps = true
1 change: 1 addition & 0 deletions packages/create-wagmi/templates/vite-vanilla/_npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps = true

0 comments on commit 0e6bd28

Please sign in to comment.