diff --git a/package.json b/package.json index 2fa1e3a..b7e4bf1 100644 --- a/package.json +++ b/package.json @@ -23,9 +23,12 @@ "publishConfig": { "access": "public" }, - "main": "lib/index.js", - "module": "lib/index.mjs", - "types": "lib/index.d.ts", + "main": "./lib/index.js", + "exports": { + "import": "./lib/index.mjs", + "default": "./lib/index.js" + }, + "types": "./lib/index.d.ts", "scripts": { "example": "ts-node example/example", "build": "ts-node rollup.build",