diff --git a/package.json b/package.json index 5f7eecb23..28067d8ad 100644 --- a/package.json +++ b/package.json @@ -9,9 +9,19 @@ }, "license": "MIT", "packageManager": "yarn@3.2.2", - "main": "lib/index.js", - "module": "esm/index.js", - "types": "esm/index.d.ts", + "exports": { + ".": { + "require": "./lib/index.js", + "default": "./esm/index.js" + } + }, + "typesVersions": { + "*": { + ".": [ + "./esm/index.d.ts" + ] + } + }, "sideEffects": false, "files": [ "lib",