From a9490a46b644a5bb4ebb822f3fd1a260f1b77b5e Mon Sep 17 00:00:00 2001 From: Asko Nõmm Date: Mon, 14 Apr 2025 04:03:42 +0300 Subject: Remove CJS support and cleanup types --- package.json | 2 +- src/shapex.ts | 2 -- 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, }); -- cgit v1.2.3