From 2e8d2aaa72392bc41e88ff7c0f003b21c7627d1b Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Tue, 22 Aug 2023 19:14:05 +0200 Subject: [PATCH] build: add backward compatible type exports --- index.d.ts | 1 + node.d.ts | 1 + package.json | 5 ++++- polyfill.d.ts | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 index.d.ts create mode 100644 node.d.ts create mode 100644 polyfill.d.ts diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..3746fe0 --- /dev/null +++ b/index.d.ts @@ -0,0 +1 @@ +export * from "./lib/index"; diff --git a/node.d.ts b/node.d.ts new file mode 100644 index 0000000..3746fe0 --- /dev/null +++ b/node.d.ts @@ -0,0 +1 @@ +export * from "./lib/index"; diff --git a/package.json b/package.json index 2e427f1..73690c0 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,10 @@ "module": "./dist/index.mjs", "files": [ "dist", - "lib" + "lib", + "index.d.ts", + "node.d.ts", + "polyfill.d.ts" ], "scripts": { "build": "unbuild", diff --git a/polyfill.d.ts b/polyfill.d.ts new file mode 100644 index 0000000..cb0ff5c --- /dev/null +++ b/polyfill.d.ts @@ -0,0 +1 @@ +export {};