diff --git a/package.json b/package.json index 8bdd8ee..baa3296 100644 --- a/package.json +++ b/package.json @@ -15,8 +15,14 @@ "main": "./lib/cjs/axiosBetterStacktrace.js", "exports": { ".": { - "import": "./lib/esm/axiosBetterStacktrace.js", - "require": "./lib/cjs/axiosBetterStacktrace.js" + "import": { + "types": "./lib/esm/axiosBetterStacktrace.d.ts", + "default": "./lib/esm/axiosBetterStacktrace.js" + }, + "require": { + "types": "./lib/cjs/axiosBetterStacktrace.d.ts", + "default": "./lib/cjs/axiosBetterStacktrace.js" + } } }, "types": "lib/cjs/axiosBetterStacktrace.d.ts", diff --git a/tsconfig.cjs.json b/tsconfig.cjs.json index 44c6785..d944d7c 100644 --- a/tsconfig.cjs.json +++ b/tsconfig.cjs.json @@ -1,7 +1,6 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "declaration": true, "module": "commonjs", "outDir": "./lib/cjs" } diff --git a/tsconfig.json b/tsconfig.json index 3a0eaf4..543edbd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,6 +5,7 @@ "esModuleInterop": true, "skipLibCheck": true, "inlineSourceMap": true, + "declaration": true, }, "include": ["src"], "exclude": ["node_modules", "**/*.spec.ts"]