diff --git a/package.json b/package.json index d8306cc..cc91b6a 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,18 @@ "main": "./dist/index.js", "module": "./dist/index.mjs", "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" + } + } + }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "tsup": "tsup src/index.ts --dts --format cjs,esm --out-dir dist" @@ -12,7 +24,8 @@ "license": "ISC", "description": "", "devDependencies": { - "typescript": "^5.8.3" + "typescript": "^5.8.3", + "tsup": "^8.5.0" }, "dependencies": { "@aa-sdk/core": "^4.30.0", @@ -20,7 +33,6 @@ "@account-kit/smart-contracts": "^4.30.0", "ajv": "^8.17.1", "socket.io-client": "^4.8.1", - "tsup": "^8.5.0", "viem": "^2.28.2" }, "files": [