From e3ed143979b63aecab7772bd5cf3f67735d8c03c Mon Sep 17 00:00:00 2001 From: Typed SIGTERM Date: Tue, 25 Jun 2024 11:57:07 +0800 Subject: [PATCH] feat(bundler-vite): add client type export (close #1579) (#1580) Co-authored-by: meteorlxy --- packages/bundler-vite/client.d.ts | 1 + packages/bundler-vite/package.json | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 packages/bundler-vite/client.d.ts diff --git a/packages/bundler-vite/client.d.ts b/packages/bundler-vite/client.d.ts new file mode 100644 index 0000000000..11f02fe2a0 --- /dev/null +++ b/packages/bundler-vite/client.d.ts @@ -0,0 +1 @@ +/// diff --git a/packages/bundler-vite/package.json b/packages/bundler-vite/package.json index 1cdf1b346f..1a40ba3125 100644 --- a/packages/bundler-vite/package.json +++ b/packages/bundler-vite/package.json @@ -21,12 +21,14 @@ "type": "module", "exports": { ".": "./dist/index.js", + "./client": "./client.d.ts", "./package.json": "./package.json" }, "main": "./dist/index.js", "types": "./dist/index.d.ts", "files": [ - "dist" + "dist", + "client.d.ts" ], "scripts": { "build": "tsup",