diff --git a/package.json b/package.json index 6a0d9b0..3899c52 100644 --- a/package.json +++ b/package.json @@ -11,9 +11,14 @@ "markdown", "utils" ], - "main": "./build/cjs/index.js", - "module": "./build/esm/index.js", - "types": "./build/esm/index.d.ts", + "exports": { + ".": { + "types": "./build/cjs/index.d.ts", + "import": "./build/esm/index.js", + "require": "./build/cjs/index.js", + "default": "./build/esm/index.js" + } + }, "files": [ "build/" ],