Browse Source

fix: broken declarations (#371)

main
Justin Poehnelt 3 years ago committed by GitHub
parent
commit
b434657bc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      rollup.config.js
  2. 3
      tsconfig.json

13
rollup.config.js

@ -29,7 +29,8 @@ export default [ @@ -29,7 +29,8 @@ export default [
{
input: "src/index.ts",
plugins: [
typescript(),
typescript({ tsconfig: "./tsconfig.json", declarationDir: "./" }),
commonjs(),
babel(babelOptions),
terser(terserOptions),
@ -53,7 +54,11 @@ export default [ @@ -53,7 +54,11 @@ export default [
},
{
input: "src/index.ts",
plugins: [typescript(), commonjs()],
plugins: [
typescript({ tsconfig: "./tsconfig.json", declarationDir: "./" }),
commonjs(),
],
output: {
file: "dist/index.dev.js",
format: "iife",
@ -62,7 +67,9 @@ export default [ @@ -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",

3
tsconfig.json

@ -11,5 +11,6 @@ @@ -11,5 +11,6 @@
"moduleResolution": "node",
"skipLibCheck": true
},
"include": ["src/**/*"]
"include": ["src/**/*"],
"exclude": ["node_modules", "./dist"]
}

Loading…
Cancel
Save