diff --git a/package.json b/package.json index 9f51ec96..16d7cf14 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "2.5.0", "description": "", "main": "dist/index.js", + "types": "dist/index.d.ts", "scripts": { "build": "tsc -d && babel ./lib --out-dir dist --extensions '.ts,.tsx' --source-maps", "build:doc": "typedoc", diff --git a/tsconfig.json b/tsconfig.json index 5bf7daa6..08846f8e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,13 +1,15 @@ { "compilerOptions": { - "target": "es5", + "target": "ESNext", "module": "commonjs", "declaration": true, "outDir": "./dist", + "declarationDir": "./dist", "strict": true, "lib": [ "es6", "dom" ] - } + }, + "include": [ "lib/*" ] }