Skip to content

Commit

Permalink
feat(bundler-vite): add client type export (close #1579) (#1580)
Browse files Browse the repository at this point in the history
Co-authored-by: meteorlxy <meteor.lxy@foxmail.com>
  • Loading branch information
typed-sigterm and meteorlxy committed Jun 25, 2024
1 parent 6d4cd11 commit e3ed143
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/bundler-vite/client.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="vite/client" />
4 changes: 3 additions & 1 deletion packages/bundler-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit e3ed143

Please sign in to comment.