Skip to content

Commit

Permalink
build: add backward compatible type exports
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 22, 2023
1 parent 790232d commit 2e8d2aa
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./lib/index";
1 change: 1 addition & 0 deletions node.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./lib/index";
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@
"module": "./dist/index.mjs",
"files": [
"dist",
"lib"
"lib",
"index.d.ts",
"node.d.ts",
"polyfill.d.ts"
],
"scripts": {
"build": "unbuild",
Expand Down
1 change: 1 addition & 0 deletions polyfill.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {};

0 comments on commit 2e8d2aa

Please sign in to comment.