Skip to content

Commit

Permalink
source export before types
Browse files Browse the repository at this point in the history
Otherwise TS doesn't find it.
  • Loading branch information
isaacs committed Jun 7, 2024
1 parent 89a8092 commit d0126db
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 56 deletions.
8 changes: 4 additions & 4 deletions src/exports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ const getExports = (
default: target,
}
: {
types: target.replace(/\.js$/, '.d.ts'),
source,
types: target.replace(/\.js$/, '.d.ts'),
default: target,
}
}
Expand All @@ -148,8 +148,8 @@ const getExports = (
default: target,
}
: {
types: target.replace(/\.js$/, '.d.ts'),
source,
types: target.replace(/\.js$/, '.d.ts'),
default: target,
}
}
Expand All @@ -163,8 +163,8 @@ const getExports = (
default: impTarget,
}
: {
types: impTarget.replace(/\.(m?)js$/, '.d.$1ts'),
source: s,
types: impTarget.replace(/\.(m?)js$/, '.d.$1ts'),
default: impTarget,
}
}
Expand All @@ -175,8 +175,8 @@ const getExports = (
default: reqTarget,
}
: {
types: reqTarget.replace(/\.(c?)js$/, '.d.$1ts'),
source: s,
types: reqTarget.replace(/\.(c?)js$/, '.d.$1ts'),
default: reqTarget,
}
}
Expand Down
Loading

0 comments on commit d0126db

Please sign in to comment.