diff --git a/package.json b/package.json index 9fadb12..3177878 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,10 @@ "main": "dist/index.cjs.js", "module": "dist/index.esm.js", "typings": "dist/index.d.ts", + "exports": { + "import": "./dist/index.esm.js", + "require": "./dist/index.cjs.js" + }, "scripts": { "test": "ts-node node_modules/tape/bin/tape test/**/*.ts", "prepublishOnly": "npm test && npm run lint && npm run build",