diff --git a/rollup.config.js b/rollup.config.js index a95e33d..1dfcffc 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -28,7 +28,7 @@ const configs = [ plugins: commonPlugins(), }, { - input: './src/client.ts', + input: './src/index.ts', output: { file: 'dist/client.js', format: 'esm', diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..ca2466f --- /dev/null +++ b/src/index.ts @@ -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";