Skip to content

Commit 9dd0d10

Browse files
committed
Fix list exports for windows #67
1 parent 25b5940 commit 9dd0d10

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/scripts/list-exports.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ const newExports = {
4242
for (const ext of [".ts", ".tsx"] as const) {
4343
const relativePath = pathJoin(basename, `index${ext}`);
4444

45-
if (!fs.existsSync(pathJoin(srcDirPath, relativePath))) {
45+
if (
46+
!fs.existsSync(pathJoin(srcDirPath, relativePath).replace(/\\/g, "/"))
47+
) {
4648
continue;
4749
}
4850

0 commit comments

Comments
 (0)