Skip to content

Commit

Permalink
fix: update rollup plugins for declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoehnelt committed Nov 22, 2021
1 parent c95f6bc commit 6bd11c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 6 additions & 3 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export default [
{
input: "src/index.ts",
plugins: [
typescript(),
typescript({ tsconfig: './tsconfig.json', 'declarationDir': './' }),
,
commonjs(),
babel(babelOptions),
terser(terserOptions),
Expand All @@ -52,7 +53,8 @@ export default [
{
input: "src/index.ts",
plugins: [
typescript(),
typescript({ tsconfig: './tsconfig.json', 'declarationDir': './' }),
,
commonjs(),
babel(babelOptions),
terser(terserOptions),
Expand All @@ -66,7 +68,8 @@ 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 @@ -12,5 +12,6 @@
"skipLibCheck": true,
"resolveJsonModule": true
},
"include": ["src/**/*.ts"]
"include": ["src/**/*"],
"exclude": ["node_modules", "./dist"]
}

0 comments on commit 6bd11c2

Please sign in to comment.