Skip to content

Commit

Permalink
fix: broken declarations (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoehnelt authored Nov 22, 2021
1 parent eeb035a commit 67a320f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
13 changes: 10 additions & 3 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default [
{
input: "src/index.ts",
plugins: [
typescript(),
typescript({ tsconfig: "./tsconfig.json", declarationDir: "./" }),
commonjs(),
nodeResolve(),
babel(babelOptions),
Expand All @@ -53,7 +53,12 @@ export default [
},
{
input: "src/index.ts",
plugins: [typescript(), commonjs(), nodeResolve(), babel(babelOptions)],
plugins: [
typescript({ tsconfig: "./tsconfig.json", declarationDir: "./" }),
commonjs(),
nodeResolve(),
babel(babelOptions),
],
output: {
file: "dist/index.dev.js",
format: "iife",
Expand All @@ -62,7 +67,9 @@ export default [
},
{
input: "src/index.ts",
plugins: [typescript()],
plugins: [
typescript({ tsconfig: "./tsconfig.json", declarationDir: "./" }),
],
output: {
file: "dist/index.esm.js",
format: "esm",
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"target": "ES6",
"moduleResolution": "node"
},
"include": ["src/**/*"]
"include": ["src/**/*"],
"exclude": ["node_modules", "./dist"]
}

0 comments on commit 67a320f

Please sign in to comment.