Skip to content

Commit d62a278

Browse files
committed
Migration to bun and Refactor
1 parent 5f4014b commit d62a278

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

package.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,19 @@
77
"scripts": {
88
"test": "bun test",
99
"lint": "eslint",
10-
"build": "tsc && bun build --target node src/index.ts --production --outfile dist/index.cjs --format cjs --packages external && bun build --target node src/index.ts --production --outfile dist/index.mjs --format esm --packages external",
10+
"build": "tsc && bun build --target node src/index.ts --production --outfile dist/index.cjs --format cjs --packages external && bun build --target node src/index.ts --production --outfile dist/index.mjs --format esm --packages external && cp dist/index.d.ts dist/index.d.cts",
1111
"prepare": "husky"
1212
},
1313
"exports": {
1414
".": {
15-
"types": "./dist/index.d.ts",
16-
"import": "./dist/index.mjs",
17-
"require": "./dist/index.cjs"
15+
"import": {
16+
"types": "./dist/index.d.ts",
17+
"default": "./dist/index.mjs"
18+
},
19+
"require": {
20+
"types": "./dist/index.d.ts",
21+
"default": "./dist/index.cjs"
22+
}
1823
}
1924
},
2025
"types": "./dist/index.d.ts",

0 commit comments

Comments
 (0)