Skip to content

Commit

Permalink
fix: re-fix dist file import paths
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens committed Jul 7, 2023
1 parent 452bd42 commit 137b8df
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,15 @@ const runtimes = defineConfig({
const types = defineConfig({
...common,

plugins: [rollupPluginDts()] as Plugin[],
plugins: [
rollupPluginDts({
compilerOptions: {
paths: Object.fromEntries(
Object.entries(pkg.imports).map(([id, path]) => [id, [path]]),
),
},
}),
] as Plugin[],
});

export default Object.entries(pkg.exports).flatMap(
Expand Down

0 comments on commit 137b8df

Please sign in to comment.