Skip to content

Commit 147e1be

Browse files
committed
add bun and deno support
1 parent 4f6c5ba commit 147e1be

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

resources/build-npm.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,15 @@ function buildExports(filepath: string): ConditionalExports {
208208
types: {
209209
module: `${base}.d.mts`,
210210
'module-sync': `${base}.d.mts`,
211-
node: `${base}.d.ts`,
211+
bun: `${base}.d.ts`,
212+
deno: `${base}.d.mts`,
213+
node: `${base}.d.mts`,
212214
require: `${base}.d.ts`,
213215
default: `${base}.d.mts`,
214216
},
215217
module: `${base}.mjs`,
218+
bun: `${base}.mjs`,
219+
deno: `${base}.mjs`,
216220
'module-sync': `${base}.mjs`,
217221
node: `${base}.js`,
218222
require: `${base}.js`,

resources/utils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ export interface ConditionalExports extends BaseExports {
251251

252252
interface BaseExports {
253253
module: string;
254+
bun: string;
255+
deno: string;
254256
'module-sync': string;
255257
node: string;
256258
require: string;

0 commit comments

Comments
 (0)