From 5fd533fad90ebe5fe59a8acbe30d6e37a8d125de Mon Sep 17 00:00:00 2001 From: Ilya Semenov Date: Thu, 22 Aug 2024 13:13:39 +0700 Subject: [PATCH] fix: support modern esm and types resolution --- package.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package.json b/package.json index 1f495db..f4b2bc9 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,13 @@ "name": "@stream-io/node-sdk", "version": "0.3.0", "description": "", + "exports": { + ".": { + "import": "./dist/index.es.js", + "require": "./dist/index.cjs.js", + "types": "./dist/index.d.ts" + } + }, "main": "dist/index.cjs.js", "module": "dist/index.es.js", "types": "dist/index.d.ts",