diff options
| author | Asko Nõmm <asko@nmm.ee> | 2025-04-14 04:03:42 +0300 |
|---|---|---|
| committer | Asko Nõmm <asko@nmm.ee> | 2025-04-14 04:03:42 +0300 |
| commit | a9490a46b644a5bb4ebb822f3fd1a260f1b77b5e (patch) | |
| tree | eede27e14b03e93e8cbcfc6c499906ab04492f25 | |
| parent | 2bb3ff864087c10f3033aa5f4f35d12b78f64b7b (diff) | |
Remove CJS support and cleanup types
| -rw-r--r-- | package.json | 2 | ||||
| -rw-r--r-- | src/shapex.ts | 2 | ||||
| -rw-r--r-- | tsup.config.ts | 3 |
3 files changed, 2 insertions, 5 deletions
diff --git a/package.json b/package.json index c1a2585..499712f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "shapex", - "version": "1.0.6", + "version": "1.0.7", "description": "A scalable event-driven application framework.", "main": "dist/shapex.cjs", "module": "dist/shapex.js", diff --git a/src/shapex.ts b/src/shapex.ts index 1118fb5..80a6b11 100644 --- a/src/shapex.ts +++ b/src/shapex.ts @@ -1,5 +1,3 @@ -export type EventDispatcher = (eventName: string, ...args: unknown[]) => void; - type SubscriptionResponseDispatch = { eventName: string; args?: unknown[]; diff --git a/tsup.config.ts b/tsup.config.ts index 74dcfd7..496d305 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -3,8 +3,7 @@ import { defineConfig } from "tsup"; export default defineConfig({ entry: ["src/shapex.ts"], clean: true, - format: ["esm", "cjs"], + format: ["esm"], dts: true, - treeshake: "smallest", sourcemap: true, }); |
