2025-12-28 12:23:55 +08:00
|
|
|
import { defineConfig } from 'tsup'
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
2025-12-29 16:10:09 +08:00
|
|
|
entry: [
|
|
|
|
|
'src/index.ts',
|
|
|
|
|
'src/auth/index.ts',
|
|
|
|
|
'src/auth/testing/index.ts',
|
|
|
|
|
'src/testing/index.ts'
|
|
|
|
|
],
|
2025-12-28 12:23:55 +08:00
|
|
|
format: ['esm'],
|
|
|
|
|
dts: true,
|
|
|
|
|
clean: true,
|
|
|
|
|
sourcemap: true,
|
2025-12-29 16:10:09 +08:00
|
|
|
external: ['ws', 'jsonwebtoken', '@esengine/rpc', '@esengine/rpc/codec'],
|
2025-12-28 12:23:55 +08:00
|
|
|
treeshake: true,
|
|
|
|
|
})
|