From f3c8d2ce8e0624064841d58ac9f33c8ed18937c8 Mon Sep 17 00:00:00 2001 From: Benny Powers Date: Sun, 3 Oct 2021 11:35:55 +0300 Subject: [PATCH] fix: package types when building --- package.json | 6 ++---- rollup.config.js | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index f560cce..f390c5d 100644 --- a/package.json +++ b/package.json @@ -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", @@ -53,8 +53,6 @@ "*.d.ts", "*.js", "*.js.map", - "lib/*", - "src/*", "custom-elements.json", "CHANGELOG.md", "README.md" diff --git a/rollup.config.js b/rollup.config.js index f6b2abe..3956474 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -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(), ],