Skip to content

Commit 2e8d2aa

Browse files
committed
build: add backward compatible type exports
1 parent 790232d commit 2e8d2aa

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

index.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from "./lib/index";

node.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from "./lib/index";

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@
5151
"module": "./dist/index.mjs",
5252
"files": [
5353
"dist",
54-
"lib"
54+
"lib",
55+
"index.d.ts",
56+
"node.d.ts",
57+
"polyfill.d.ts"
5558
],
5659
"scripts": {
5760
"build": "unbuild",

polyfill.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export {};

0 commit comments

Comments
 (0)