diff --git a/package.json b/package.json index a15c85a..bd75ce9 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,20 @@ "version": "3.2.1", "description": "A resilience and transient-fault-handling library that allows developers to express policies such as Backoff, Retry, Circuit Breaker, Timeout, Bulkhead Isolation, and Fallback in a fluent and thread-safe manner. Inspired by .NET Polly.", "main": "dist/index.js", + "types": "dist/index.d.ts", "module": "dist/esm/index.js", + "exports": { + ".": { + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } + } + }, "engines": { "node": ">=16" },