fix(types): add client and theme to `exports` field (#914)

Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
pull/1101/head
JounQin 2 years ago committed by GitHub
parent 60c515c125
commit 1cc087deee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
client.d.ts vendored

@ -1,3 +1,5 @@
// re-export vite client types. with strict installers like pnpm, user won't
// be able to reference vite/client in project root.
/// <reference types="vite/client" />
export * from './dist/client'

@ -12,7 +12,15 @@
"import": "./dist/node/index.js",
"require": "./dist/node-cjs/index.cjs"
},
"./dist/client/*": "./dist/client/*"
"./dist/client/*": "./dist/client/*",
"./client": {
"types": "./client.d.ts",
"default": "./dist/client/index.js"
},
"./theme": {
"types": "./theme.d.ts",
"default": "./dist/client/theme-default/index.js"
}
},
"bin": {
"vitepress": "bin/vitepress.js"

Loading…
Cancel
Save