Skip to content

Commit

Permalink
fix: Build types in dist/ and add the types entrypoint in `package.…
Browse files Browse the repository at this point in the history
…json`

Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux committed Feb 6, 2023
1 parent 54edaaa commit 485304e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 4 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{
"compilerOptions": {
"target": "es5",
"target": "ESNext",
"module": "commonjs",
"declaration": true,
"outDir": "./dist",
"declarationDir": "./dist",
"strict": true,
"lib": [
"es6",
"dom"
]
}
},
"include": [ "lib/*" ]
}

0 comments on commit 485304e

Please sign in to comment.