Skip to content

Commit

Permalink
fix: make client own build to prevent import server code into browser
Browse files Browse the repository at this point in the history
  • Loading branch information
EastSun5566 committed Oct 3, 2024
1 parent 0e83865 commit ecd15e9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/client/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '../y-socket-io/client.js'
1 change: 0 additions & 1 deletion src/y-socket-io/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export * from './client.js'
export * from './user.js'
export { YSocketIO } from './y-socket-io.js'
5 changes: 4 additions & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { defineConfig } from 'tsup'

export default defineConfig({
entryPoints: ['src/index.js'],
entry: [
'src/index.js',
'src/client/index.js',
],
format: ['cjs', 'esm'],
dts: true,
outDir: 'dist',
Expand Down

0 comments on commit ecd15e9

Please sign in to comment.