-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(cli): generated chain key type #1736
Conversation
🦋 Changeset detectedLatest commit: dd77b9c The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
40d0bf9
to
dd77b9c
Compare
"build": "pnpm -r --filter '@wagmi/chains' build && pnpm -r --filter '@wagmi/core' build && pnpm -r --filter './packages/**' --filter './references/packages/**' build", | ||
"build": "pnpm --filter '@wagmi/chains' build && pnpm --filter '@wagmi/core' build && pnpm -r --filter './packages/**' --filter './references/**' --filter '!./packages/core' --filter '!./references/**/chains' build", | ||
"changeset:release": "pnpm build && changeset publish", | ||
"changeset:version": "changeset version && pnpm install --lockfile-only", | ||
"cjs:release": "node -r esbuild-register ./scripts/cjs.ts", | ||
"dev": "pnpm -r --filter '@wagmi/chains' build && pnpm -r --filter '@wagmi/connectors' --filter './packages/**' dev", | ||
"dev": "pnpm --filter '@wagmi/chains' build && pnpm -r --filter './packages/**' --filter './references/**' --filter '!./references/**/chains' dev", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cleaned up these scripts. Have some dependencies that pnpm is able to map out correctly with topo sort so handling it here.
@@ -68,7 +68,7 @@ | |||
}, | |||
"dependencies": { | |||
"@ethersproject/address": "^5.7.0", | |||
"@wagmi/chains": "^0.2.0", | |||
"@wagmi/chains": "workspace:../../references/packages/chains", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use workspace version instead of pinned
/^\s*"(\d)":/gm, | ||
'$1:', | ||
) | ||
JSON.stringify(resolvedAddress, null, 2).replace(/"(\d*)":/gm, '$1:') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
regex i used before only worked for single digits 🤦♂️
this one is much better: https://regexr.com/7700l
Description
Fix generated address object key type so it's alway a number. (Won't be a number in JS
Object.keys
still, which is fine. Just need it to be for type inference.)Additional Information
Your ENS/address: awkweb.eth