From ca1176ac4aa2be02c479279d01b59044b5ace42d Mon Sep 17 00:00:00 2001 From: millerm30 Date: Wed, 9 Jul 2025 18:09:17 -0230 Subject: [PATCH 1/2] Enhance package.json: add main and types fields, and define typesVersions for better TypeScript support. --- package.json | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 66fe5c3..0b3bbd9 100644 --- a/package.json +++ b/package.json @@ -17,11 +17,21 @@ "url": "https://github.com/notificationapi-com/notificationapi-node-server-sdk/issues" }, "homepage": "https://www.notificationapi.com", + "main": "./lib/cjs/index.js", + "types": "./lib/cjs/index.d.ts", "type": "module", "exports": { ".": { "import": "./lib/esm/index.js", - "require": "./lib/cjs/index.js" + "require": "./lib/cjs/index.js", + "types": "./lib/cjs/index.d.ts" + } + }, + "typesVersions": { + "*": { + ".": [ + "./lib/cjs/index.d.ts" + ] } }, "files": [ From 31c3cfffdd0bb43632a4aa557028dc25634a73c6 Mon Sep 17 00:00:00 2001 From: millerm30 Date: Wed, 9 Jul 2025 18:09:35 -0230 Subject: [PATCH 2/2] 2.5.1 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9c56264..f379be1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "notificationapi-node-server-sdk", - "version": "2.5.0", + "version": "2.5.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "notificationapi-node-server-sdk", - "version": "2.5.0", + "version": "2.5.1", "license": "ISC", "dependencies": { "@slack/types": "^2.0.0", diff --git a/package.json b/package.json index 0b3bbd9..c51497c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "notificationapi-node-server-sdk", - "version": "2.5.0", + "version": "2.5.1", "description": "NotificationAPI server-side library for Node.js", "keywords": [ "notificationapi",