mirror of
https://github.com/hanzoai/base.git
synced 2026-10-21 03:41:50 +00:00
- Add /compat export path re-exporting PocketBase client as drop-in - Add pocketbase as dependency (compat layer) - Add RealtimeService.unsubscribe() method - Build: core, compat, react, crdt entry points - UI: swap pocketbase → @hanzo/base/compat, builds clean - Published to npm as @hanzo/[email protected]
20 lines
413 B
TypeScript
20 lines
413 B
TypeScript
import { defineConfig } from 'tsup'
|
|
|
|
export default defineConfig({
|
|
entry: {
|
|
'core/index': 'src/core/index.ts',
|
|
'compat/index': 'src/compat/index.ts',
|
|
'react/index': 'src/react/index.ts',
|
|
'crdt/index': 'src/crdt/index.ts',
|
|
},
|
|
format: ['esm'],
|
|
dts: true,
|
|
sourcemap: true,
|
|
clean: true,
|
|
splitting: true,
|
|
treeshake: true,
|
|
target: 'es2020',
|
|
outDir: 'dist',
|
|
external: ['react'],
|
|
})
|