From 7d597471c66c5fec750b115cc46b43094c849dd3 Mon Sep 17 00:00:00 2001 From: luuhongyii <72600702+luuhongyii@users.noreply.github.com> Date: Sat, 13 Jun 2026 03:28:13 +0200 Subject: [PATCH 1/2] fix rollup copy types export --- packages/rollup-plugin-copy/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" } From 02b7abbc014029fd234888197b5cbd1d11d2807a Mon Sep 17 00:00:00 2001 From: luuhongyii <72600702+luuhongyii@users.noreply.github.com> Date: Sat, 13 Jun 2026 03:30:15 +0200 Subject: [PATCH 2/2] add changeset for rollup copy types fix --- .changeset/correct-copy-types.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/correct-copy-types.md diff --git a/.changeset/correct-copy-types.md b/.changeset/correct-copy-types.md new file mode 100644 index 000000000..1edef25e7 --- /dev/null +++ b/.changeset/correct-copy-types.md @@ -0,0 +1,5 @@ +--- +'@web/rollup-plugin-copy': patch +--- + +Fix the root export's types condition to point to the published declaration file.