Skip to content

Commit

Permalink
fix: package types when building
Browse files Browse the repository at this point in the history
  • Loading branch information
bennypowers committed Oct 3, 2021
1 parent a6152b2 commit f3c8d2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"build:rollup": "rollup -c",
"build:analyze": "cem analyze --litelement",
"clean": "run-s clean:*",
"clean:src": "rimraf '{src,test}/**/!(global).{js,js.map,d.ts}'",
"clean:index": "rimraf './!(rollup.config|web-*).{js,js.map,d.ts}'",
"clean:src": "rimraf '{src,test,lib}/**/!(global).{js,js.map,d.ts}'",
"clean:index": "rimraf './!(*.config|web-*).{js,js.map,d.ts}'",
"lint": "eslint src/**/*.ts",
"test": "wtr --coverage",
"test:watch": "wtr --watch",
Expand All @@ -53,8 +53,6 @@
"*.d.ts",
"*.js",
"*.js.map",
"lib/*",
"src/*",
"custom-elements.json",
"CHANGELOG.md",
"README.md"
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default {
},
plugins: [
resolve({ extensions: ['.js', '.css', '.html'], dedupe: id => id.includes('lit') }),
copy({ targets: [{ src: 'src/*.d.ts', dest: '.' }] }),
copy({ targets: [{ src: 'src/*.d.ts', dest: '.' }, { src: 'src/lib/*.d.ts', dest: './lib' }] }),
litcss(),
commonjs(),
],
Expand Down

0 comments on commit f3c8d2c

Please sign in to comment.