diff --git a/.changeset/rollup-copy-types-export.md b/.changeset/rollup-copy-types-export.md new file mode 100644 index 000000000..6fd214b24 --- /dev/null +++ b/.changeset/rollup-copy-types-export.md @@ -0,0 +1,5 @@ +--- +'@web/rollup-plugin-copy': patch +--- + +Fix the package export declaration to point TypeScript at the shipped `dist/copy.d.ts` declarations. diff --git a/packages/rollup-plugin-copy/package.json b/packages/rollup-plugin-copy/package.json index ee1b7935a..9e6e12d19 100644 --- a/packages/rollup-plugin-copy/package.json +++ b/packages/rollup-plugin-copy/package.json @@ -20,7 +20,7 @@ "module": "index.mjs", "exports": { ".": { - "types": "./index.d.ts", + "types": "./dist/copy.d.ts", "import": "./index.mjs", "require": "./src/copy.js" }