diff --git a/.changeset/rare-months-roll.md b/.changeset/rare-months-roll.md new file mode 100644 index 00000000..13ab9004 --- /dev/null +++ b/.changeset/rare-months-roll.md @@ -0,0 +1,5 @@ +--- +"@ckb-ccc/xverse": patch +--- + +fixed: To resolve module not found compilation errors in the CRA app. diff --git a/packages/xverse/src/sat-connect-core/advanced.ts b/packages/xverse/src/sat-connect-core/advanced.ts index f05747d8..3fc6941c 100644 --- a/packages/xverse/src/sat-connect-core/advanced.ts +++ b/packages/xverse/src/sat-connect-core/advanced.ts @@ -1,4 +1,4 @@ -export * from "./btcMethods.advanced"; -export * from "./provider.advanced"; -export * from "./requests.advanced"; -export * from "./types.advanced"; +export * from "./btcMethods.advanced.js"; +export * from "./provider.advanced.js"; +export * from "./requests.advanced.js"; +export * from "./types.advanced.js"; diff --git a/packages/xverse/src/sat-connect-core/btcMethods.advanced.ts b/packages/xverse/src/sat-connect-core/btcMethods.advanced.ts index 147d37a2..20c357df 100644 --- a/packages/xverse/src/sat-connect-core/btcMethods.advanced.ts +++ b/packages/xverse/src/sat-connect-core/btcMethods.advanced.ts @@ -8,8 +8,8 @@ import * as v from "valibot"; import { MethodParamsAndResult, rpcRequestMessageSchema, -} from "./types.advanced"; -import { walletTypeSchema } from "./walletMethods.advanced"; +} from "./types.advanced.js"; +import { walletTypeSchema } from "./walletMethods.advanced.js"; export enum AddressPurpose { Ordinals = "ordinals", diff --git a/packages/xverse/src/sat-connect-core/provider.advanced.ts b/packages/xverse/src/sat-connect-core/provider.advanced.ts index 04b49775..cbc25817 100644 --- a/packages/xverse/src/sat-connect-core/provider.advanced.ts +++ b/packages/xverse/src/sat-connect-core/provider.advanced.ts @@ -1,6 +1,6 @@ import * as v from "valibot"; -import { Params, Requests } from "./requests.advanced"; -import { RpcResponse } from "./types.advanced"; +import { Params, Requests } from "./requests.advanced.js"; +import { RpcResponse } from "./types.advanced.js"; // accountChange export const accountChangeEventName = "accountChange"; diff --git a/packages/xverse/src/sat-connect-core/requests.advanced.ts b/packages/xverse/src/sat-connect-core/requests.advanced.ts index 153df1f9..cbce3a74 100644 --- a/packages/xverse/src/sat-connect-core/requests.advanced.ts +++ b/packages/xverse/src/sat-connect-core/requests.advanced.ts @@ -6,12 +6,12 @@ import { SendTransfer, SignMessage, SignPsbt, -} from "./btcMethods.advanced"; +} from "./btcMethods.advanced.js"; import { GetWalletType, RenouncePermissions, RequestPermissions, -} from "./walletMethods.advanced"; +} from "./walletMethods.advanced.js"; export interface BtcRequests { getInfo: GetInfo; diff --git a/packages/xverse/src/sat-connect-core/types.advanced.ts b/packages/xverse/src/sat-connect-core/types.advanced.ts index df1860d8..57d4f3bf 100644 --- a/packages/xverse/src/sat-connect-core/types.advanced.ts +++ b/packages/xverse/src/sat-connect-core/types.advanced.ts @@ -2,8 +2,8 @@ // From https://github.com/secretkeylabs/sats-connect-core/ import * as v from "valibot"; -import type { BtcProvider } from "./provider.advanced"; -import type { Requests, Return } from "./requests.advanced"; +import type { BtcProvider } from "./provider.advanced.js"; +import type { Requests, Return } from "./requests.advanced.js"; export enum BitcoinNetworkType { Mainnet = "Mainnet",