Skip to content

Commit

Permalink
fix(types): add client and theme to exports field (#914)
Browse files Browse the repository at this point in the history
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
  • Loading branch information
JounQin and brc-dd committed Aug 2, 2022
1 parent 60c515c commit 1cc087d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions client.d.ts
@@ -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'
10 changes: 9 additions & 1 deletion package.json
Expand Up @@ -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"
Expand Down

0 comments on commit 1cc087d

Please sign in to comment.