Skip to content

Commit

Permalink
fix: publish typescript declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
bennypowers committed Apr 22, 2020
1 parent bb3df54 commit 4ad010a
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 0 deletions.
113 changes: 113 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
"query-selector-shadow-dom": "^0.4.6",
"rollup": "^2.7.1",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-copy": "^3.3.0",
"rollup-plugin-lit-css": "^2.0.3",
"sinon": "^9.0.2",
"sinon-chai": "^3.5.0",
Expand Down
2 changes: 2 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import commonjs from '@rollup/plugin-commonjs';
import litcss from 'rollup-plugin-lit-css';
import resolve from '@rollup/plugin-node-resolve';
import pkg from './package.json';
import copy from 'rollup-plugin-copy';

const deps = Object.keys(pkg.dependencies);
const external = id =>
Expand All @@ -25,6 +26,7 @@ export default {
},
plugins: [
resolve({ extensions: ['.js', '.css', '.html'], dedupe: id => id.includes('lit') }),
copy({ targets: [{ src: 'src/*.d.ts', dest: '.' }] }),
litcss(),
commonjs(),
],
Expand Down

0 comments on commit 4ad010a

Please sign in to comment.