diff --git a/package.json b/package.json index eb3551f..f8d1d26 100644 --- a/package.json +++ b/package.json @@ -11,10 +11,20 @@ "index.mjs", "index.d.ts" ], + "exports": { + ".": [ + { + "import": "./index.mjs", + "require": "./index.js", + "default": "./index.js" + }, + "./index.js" + ] + }, "repository": { "type": "git", "url": "https://github.com/then/is-promise.git" }, "author": "ForbesLindesay", "license": "MIT" -} \ No newline at end of file +}