build: deep import EventStore to bypass re-export resolution on Vercel

- Import EventStore from applesauce-core/dist/event-store/event-store.js
- Add TS module declaration shim for deep import typing
- No functional changes, fixes Vercel bundling for async-event-store.js
This commit is contained in:
Gigi
2025-10-07 06:15:48 +01:00
parent 1d4ad4e2fa
commit f455f61795
2 changed files with 7 additions and 1 deletions

View File

@@ -3,7 +3,7 @@ import { BrowserRouter, Routes, Route, Navigate } from 'react-router-dom'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faSpinner } from '@fortawesome/free-solid-svg-icons'
import { EventStoreProvider, AccountsProvider, Hooks } from 'applesauce-react'
import { EventStore } from 'applesauce-core'
import { EventStore } from 'applesauce-core/dist/event-store/event-store.js'
import { AccountManager } from 'applesauce-accounts'
import { registerCommonAccountTypes } from 'applesauce-accounts/accounts'
import { RelayPool } from 'applesauce-relay'

6
src/types/applesauce-core-deep.d.ts vendored Normal file
View File

@@ -0,0 +1,6 @@
declare module 'applesauce-core/dist/event-store/event-store.js' {
// Re-export the EventStore type from the main package so TS has correct types
export { EventStore } from 'applesauce-core';
}