From c9e006e7c01e160e32d79d1ba93408576cf525d7 Mon Sep 17 00:00:00 2001 From: Alexander Swed Date: Sat, 3 Oct 2020 20:59:41 +0200 Subject: [PATCH] fix: include TypeScript declarations --- package.json | 5 +---- tsconfig.lib.json | 3 ++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index ff848c10..cd1ddc6a 100644 --- a/package.json +++ b/package.json @@ -6,14 +6,11 @@ "source": "src/lib/index.ts", "main": "build/index.js", "module": "build/index.es.js", - "jsnext:main": "build/index.es.js", - "unpkg": "build/index.umd.js", - "typings": "build/index.d.ts", + "types": "build/index.d.ts", "files": [ "build", "src/lib" ], - "types": "build/index.d.ts", "sideEffects": false, "engines": { "node": ">=12" diff --git a/tsconfig.lib.json b/tsconfig.lib.json index 085ba439..08c186b0 100644 --- a/tsconfig.lib.json +++ b/tsconfig.lib.json @@ -2,7 +2,8 @@ "extends": "./tsconfig.json", "compilerOptions": { "module": "ESNext", - "target": "ESNext" + "target": "ESNext", + "declaration": true }, "include": ["src/lib/**/*"], "exclude": ["node_modules"]