diff --git a/package.json b/package.json index 721554a..8e148e0 100644 --- a/package.json +++ b/package.json @@ -7,15 +7,26 @@ "types": "index.d.ts", "exports": { ".": { - "import": "./index.js", - "require": "./cjs/index.cjs" + "import": { + "types": "./index.d.ts", + "default": "./index.js" + }, + "require": { + "types": "./cjs/index.d.ts", + "default": "./cjs/index.cjs" + } }, "./relay": { - "import": "./relay.js", - "require": "./cjs/relay.cjs" + "import": { + "types": "./relay.d.ts", + "default": "./relay.js" + }, + "require": { + "types": "./cjs/relay.d.ts", + "default": "./cjs/relay.cjs" + } }, - "./package.json": "./package.json", - "./": "./" + "./package.json": "./package.json" }, "repository": { "type": "git", diff --git a/tsconfig.cjs.json b/tsconfig.cjs.json index bd3b7be..6759189 100644 --- a/tsconfig.cjs.json +++ b/tsconfig.cjs.json @@ -1,7 +1,6 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "outDir": "dist/cjs", - "declaration": false + "outDir": "dist/cjs" } }