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

CU-86a23ccez - Fix Svelte Wallet Connect for TurboRepo #107

Merged
merged 1 commit into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@cityofzion/wallet-connect-sdk-core",
"comment": "Hotfix an error during the build process using SvelteKit and TurboRepo.",
"type": "patch"
}
],
"packageName": "@cityofzion/wallet-connect-sdk-core"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@cityofzion/wallet-connect-sdk-svelte",
"comment": "Hotfix an error during the build process using SvelteKit and TurboRepo.",
"type": "patch"
}
],
"packageName": "@cityofzion/wallet-connect-sdk-svelte"
}
5 changes: 4 additions & 1 deletion packages/wallet-connect-sdk-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export type NetworkVersion = GetVersionResult & {
/**
* An adapter of SignClient to work easily with Neon Wallet
*/
export default class WcSdk implements Neo3Invoker, Neo3Signer {
class WcSdk implements Neo3Invoker, Neo3Signer {
/**
* The WalletConnect Library
*/
Expand Down Expand Up @@ -705,4 +705,7 @@ export default class WcSdk implements Neo3Invoker, Neo3Signer {
}
}

// The WcSdk export is duplicated in two different ways to accommodate both CommonJS and Vite builds.
export { WcSdk }
export default WcSdk
export * from '@cityofzion/neon-dappkit-types'
2 changes: 1 addition & 1 deletion packages/wallet-connect-sdk-svelte/src/WcSdkStore.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { writable, type Writable, type Readable, derived } from 'svelte/store'
import SignClient from '@walletconnect/sign-client'
import WcSdk from '@cityofzion/wallet-connect-sdk-core'
import { WcSdk } from '@cityofzion/wallet-connect-sdk-core'
import type {
NetworkType,
Method,
Expand Down
Loading