From 79fb22f979ba1d275d611f7b5c12daca10267ad2 Mon Sep 17 00:00:00 2001 From: Tim Griesser Date: Wed, 24 Mar 2021 18:45:34 -0400 Subject: [PATCH] feat: include .d.ts types in release --- package.json | 1 + tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d4ae0bf3..c057cb13 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ } ], "main": "lib/index.js", + "types": "lib/index.d.ts", "files": [ "lib" ], diff --git a/tsconfig.json b/tsconfig.json index 3803ea7f..6136edb4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,7 +11,7 @@ "allowJs": true /* Allow javascript files to be compiled. */, "checkJs": false /* Report errors in .js files. */, // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ - // "declaration": true, /* Generates corresponding '.d.ts' file. */ + "declaration": true /* Generates corresponding '.d.ts' file. */, // "sourceMap": true, /* Generates corresponding '.map' file. */ // "outFile": "./", /* Concatenate and emit output to single file. */ "outDir": "./lib" /* Redirect output structure to the directory. */,