-
Notifications
You must be signed in to change notification settings - Fork 8
[WIP] feat(TS builds): move off vite for builds and use updated tsconfig instead #26
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
Conversation
7eb6b0b
to
8d5bbb4
Compare
@fubhy is not available next week afaik one more thing we need to fix is
|
export default defineConfig({ | ||
plugins: [react()], | ||
test: { | ||
globals: true, |
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.
Do we need the globals
here?
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.
I'd also suggest to not use globals.
return JSON.parse(data, (__key, value) => { | ||
if (typeof value === 'object' && value !== null && value.type === 'Uint8Array') { | ||
return new Uint8Array(value.data); |
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.
🤮🤮🤮🤮
return JSON.stringify(data, (_key, value) => { | ||
if (value instanceof Uint8Array) { | ||
return { type: 'Uint8Array', data: Array.from(value) }; |
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.
🤮🤮🤮🤮
const connectWallet = async () => { | ||
let newSigner = null; | ||
let provider; | ||
let provider: ethers.AbstractProvider | ethers.BrowserProvider; |
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.
Can we use Viem instead of Ethers? https://github.com/wevm/viem
Or maybe even go as low as Ox? https://github.com/wevm/ox
export default defineConfig({ | ||
plugins: [react()], | ||
test: { | ||
globals: true, |
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.
I'd also suggest to not use globals.
}, | ||
"pnpm": { | ||
"patchedDependencies": { | ||
"[email protected]": "patches/[email protected]" |
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.
We'll also need to remember to add the changeset patches. Otherwise every minor or patch bump of a dependent package will cause a major version increment.
Closing in favor of new tsconfig PR created by Nik |
Description
Moved to using better tsconfigs with paths, references, etc for "builds".
This came from this comment on #22.
Notes
I basically ended up copying the structure that effect uses for tsconfigs and builds. It seems to mostly work within the packages, but the
apps/events
is broken sayingCannot find module 'graph-framework' or its corresponding type declarations.
. I could use some help with this as I am not sure what I am missing?? cc @nikgraf @fubhy (who still needs repo access). Maybe we can chat Monday on it and go through some options.