Skip to content
This repository has been archived by the owner on Dec 9, 2021. It is now read-only.

Commit

Permalink
fix: broken declarations (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoehnelt committed Nov 22, 2021
1 parent e0eb35e commit 591954d
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 74 deletions.
140 changes: 70 additions & 70 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 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 @@ -53,7 +54,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 @@ -62,7 +68,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 @@ -9,5 +9,6 @@
"lib": ["DOM", "ESNext"],
"types": ["google.maps"]
},
"include": ["src/**/*"]
"include": ["src/**/*"],
"exclude": ["node_modules", "./dist"]
}

0 comments on commit 591954d

Please sign in to comment.