diff --git a/package.json b/package.json index 49dff617..726ba461 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,20 @@ "repository": "git://github.com/ianstormtaylor/superstruct.git", "type": "module", "main": "./dist/index.cjs", - "module": "./dist/index.mjs", + "module": "./dist/index.js", "types": "./dist/index.d.ts", + "exports": { + ".": { + "import": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" + } + } + }, "sideEffects": false, "files": [ "dist"