diff --git a/package.json b/package.json index e7b01f2..94b4e1b 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "require": "./dist/index.cjs", "default": "./dist/index.modern.js" }, - "types": "./dist/src/src/index.d.ts", + "types": "./dist/src/index.d.ts", "main": "./dist/index.cjs", "module": "./dist/index.module.js", "unpkg": "./dist/index.umd.js", diff --git a/tsconfig.json b/tsconfig.json index c92ffd3..6402070 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,9 @@ "target": "ESNext", "strict": true, "forceConsistentCasingInFileNames": true, - "moduleResolution": "node" + "moduleResolution": "node", + "declaration": true, + "declarationDir": "./dist" }, "include": ["src", "types"] }