diff --git a/index.js b/index.js deleted file mode 100644 index 6a55550..0000000 --- a/index.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";export*from"./BareTypes";export*from"./BareClient";export{WebSocketFields}from"./snapshot"; diff --git a/package.json b/package.json index 8b57791..2237d40 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mercuryworkshop/bare-mux", - "version": "1.1.1", + "version": "1.1.2", "description": "", "type": "module", "scripts": { @@ -8,18 +8,14 @@ }, "author": "", "main": "dist/index.cjs", - "types": "dist/types.d.ts", + "types": "dist/index.d.ts", "exports": { ".": { - "node": { - "require": "./lib/index.cjs", - "import": "./lib/index.cjs" - }, - "browser": { - "import": "./dist/index.js", - "require": "./dist/index.cjs" - } - } + "import": "./dist/index.js", + "require": "./dist/bare.cjs", + "types": "./dist/index.d.ts" + }, + "./node": "./lib/index.cjs" }, "files": [ "dist", @@ -37,4 +33,4 @@ "@types/uuid": "^9.0.8", "uuid": "^9.0.1" } -} +} \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index 4e27ca4..d32d3e7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,3 +4,9 @@ export * from './Switcher'; export * from './RemoteClient'; export { BareClient as default } from './BareClient'; export { WebSocketFields } from "./snapshot"; + +export type * from './BareTypes'; +export type * from './BareClient'; +export type * from './Switcher'; +export type * from './RemoteClient'; +export type * from "./snapshot"; \ No newline at end of file diff --git a/src/types.ts b/src/types.ts deleted file mode 100644 index 707e261..0000000 --- a/src/types.ts +++ /dev/null @@ -1,6 +0,0 @@ -export type * from './BareTypes'; -export type * from './BareClient'; -export type * from './Switcher'; -export type * from './RemoteClient'; -export type { BareClient as default } from './BareClient'; -export type { WebSocketFields } from "./snapshot"; \ No newline at end of file