mirror of
https://github.com/MercuryWorkshop/bare-mux.git
synced 2025-05-16 15:40:01 -04:00
export all types in one file
This commit is contained in:
parent
bc9606e1b8
commit
2e0dc263ac
2 changed files with 11 additions and 1 deletions
|
@ -28,7 +28,7 @@ const configs = [
|
|||
plugins: commonPlugins(),
|
||||
},
|
||||
{
|
||||
input: './src/client.ts',
|
||||
input: './src/index.ts',
|
||||
output: {
|
||||
file: 'dist/client.js',
|
||||
format: 'esm',
|
||||
|
|
10
src/index.ts
Normal file
10
src/index.ts
Normal file
|
@ -0,0 +1,10 @@
|
|||
export * from './baretypes';
|
||||
export * from './client';
|
||||
export * from './connection';
|
||||
export { BareClient as default } from './client';
|
||||
export { WebSocketFields } from "./snapshot";
|
||||
|
||||
export type * from './baretypes';
|
||||
export type * from './client';
|
||||
export type * from './connection';
|
||||
export type * from "./snapshot";
|
Loading…
Add table
Add a link
Reference in a new issue