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. 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" }