Skip to content
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

feat: bundler module resolution #885

Merged
merged 6 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"prettier": "^3.3.2",
"tailwindcss": "^3.4.3",
"type-fest": "^4.6.0",
"typescript": "5.1.6",
"typescript": "5.5.3",
"vercel": "^32.4.1"
}
}
7 changes: 5 additions & 2 deletions packages/nextjs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"paths": {
"~~/*": ["./*"]
"~~/*": ["./*"],
"abitype": ["./node_modules/abitype"],
"viem/node_modules/abitype": ["./node_modules/viem/node_modules/abitype"],
"wagmi/node_modules/abitype": ["./node_modules/wagmi/node_modules/abitype"]
rin-st marked this conversation as resolved.
Show resolved Hide resolved
},
"plugins": [
{
Expand Down
16 changes: 1 addition & 15 deletions packages/nextjs/types/abitype/abi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,5 @@ import "abitype";
type AddressType = string;

declare module "abitype" {
export interface Register {
AddressType: AddressType;
}
}

declare module "viem/node_modules/abitype" {
technophile-04 marked this conversation as resolved.
Show resolved Hide resolved
export interface Register {
AddressType: AddressType;
}
}

declare module "wagmi/node_moudles/abitype" {
technophile-04 marked this conversation as resolved.
Show resolved Hide resolved
export interface Register {
AddressType: AddressType;
}
export type Address = AddressType;
}
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2265,7 +2265,7 @@ __metadata:
react-hot-toast: ^2.4.0
tailwindcss: ^3.4.3
type-fest: ^4.6.0
typescript: 5.1.6
typescript: 5.5.3
use-debounce: ^8.0.4
usehooks-ts: ^2.13.0
vercel: ^32.4.1
Expand Down Expand Up @@ -14047,13 +14047,13 @@ __metadata:
languageName: node
linkType: hard

"typescript@npm:5.1.6":
version: 5.1.6
resolution: "typescript@npm:5.1.6"
"typescript@npm:5.5.3":
version: 5.5.3
resolution: "typescript@npm:5.5.3"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: b2f2c35096035fe1f5facd1e38922ccb8558996331405eb00a5111cc948b2e733163cc22fab5db46992aba7dd520fff637f2c1df4996ff0e134e77d3249a7350
checksum: 4b4f14313484d5c86064d04ba892544801fa551f5cf72719b540b498056fec7fc192d0bbdb2ba1448e759b1548769956da9e43e7c16781e8d8856787b0575004
languageName: node
linkType: hard

Expand All @@ -14077,13 +14077,13 @@ __metadata:
languageName: node
linkType: hard

"typescript@patch:typescript@5.1.6#~builtin<compat/typescript>":
version: 5.1.6
resolution: "typescript@patch:typescript@npm%3A5.1.6#~builtin<compat/typescript>::version=5.1.6&hash=a1c5e5"
"typescript@patch:typescript@5.5.3#~builtin<compat/typescript>":
version: 5.5.3
resolution: "typescript@patch:typescript@npm%3A5.5.3#~builtin<compat/typescript>::version=5.5.3&hash=a1c5e5"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 21e88b0a0c0226f9cb9fd25b9626fb05b4c0f3fddac521844a13e1f30beb8f14e90bd409a9ac43c812c5946d714d6e0dee12d5d02dfc1c562c5aacfa1f49b606
checksum: 6853be4607706cc1ad2f16047cf1cd72d39f79acd5f9716e1d23bc0e462c7f59be7458fe58a21665e7657a05433d7ab8419d093a5a4bd5f3a33f879b35d2769b
languageName: node
linkType: hard

Expand Down
Loading