Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Nov 6, 2023
1 parent 9e7d875 commit 8d0d9c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/reverse-exports/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function reversePackageExports(
relativePath: string
): string {
// TODO add an actual matching system and don't just look for the default
if (packageJSON.exports?.['./*'] === './dist/*.js') {
if (packageJSON.exports?.['./*'] === './dist/*.js' || packageJSON.exports?.['./*']?.default === './dist/*.js') {
return posix.join(packageJSON.name, relativePath.replace(/^.\/dist\//, `./`).replace(/\.js$/, ''));
}

Expand Down

0 comments on commit 8d0d9c2

Please sign in to comment.