From 84f83ec2c97b12b019f0bfbca49410e645e872a9 Mon Sep 17 00:00:00 2001 From: Sidney Alcantara Date: Tue, 12 Apr 2022 11:58:01 +1000 Subject: [PATCH] fix typescript types generation path --- package.json | 2 +- tsconfig.json | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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"] }