Skip to content

Commit

Permalink
fix: broken declarations (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoehnelt authored Nov 22, 2021
1 parent 99a84af commit c59e216
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export default [
{
input: "src/index.ts",
plugins: [
typescript(),
typescript({ tsconfig: "./tsconfig.json", declarationDir: "./" }),

commonjs(),
babel(babelOptions),
terser(terserOptions),
Expand All @@ -48,7 +49,12 @@ export default [
},
{
input: "src/index.ts",
plugins: [typescript(), commonjs(), babel(babelOptions)],
plugins: [
typescript({ tsconfig: "./tsconfig.json", declarationDir: "./" }),

commonjs(),
babel(babelOptions),
],
output: {
file: "dist/index.dev.js",
format: "iife",
Expand All @@ -57,7 +63,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
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"lib": ["ESNext", "DOM"]
},
"include": ["src/**/*"],
"exclude": ["**/*.test.ts", "node_modules"]
"exclude": ["**/*.test.ts", "node_modules", "./dist"]
}

0 comments on commit c59e216

Please sign in to comment.