Skip to content

Commit

Permalink
fix(git-changelog): exposure types and composables (#377)
Browse files Browse the repository at this point in the history
* fix: exposure types and composables
* fix: types path
  • Loading branch information
northword authored Jan 22, 2025
1 parent 03f2ff5 commit 31f0994
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions packages/vitepress-plugin-git-changelog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
"import": "./dist/locales/index.mjs",
"require": "./dist/locales/index.cjs"
},
"./types": {
"types": "./dist/client/index.d.ts"
"./types/*": {
"types": "./dist/types/*"
},
"./vite": {
"types": "./dist/vite/index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './changelog'
export * from './i18n'
2 changes: 2 additions & 0 deletions packages/vitepress-plugin-git-changelog/src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ const components = {
NolebaseGitContributors,
}

export * from './composables'

export const NolebaseGitChangelogPlugin: Plugin<Options[]> = {
install(app, options?) {
if (typeof options !== 'undefined' && typeof options === 'object')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
declare module 'virtual:nolebase-git-changelog' {
import type { Changelog, Commit } from '../types'

export type { Commit }
import type { Changelog } from './types'

const changelog: Changelog
export default changelog
Expand Down
4 changes: 1 addition & 3 deletions packages/vitepress-plugin-git-changelog/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
]
},
"types": [
"vite/client",
"./src/client/virtual.d.ts",
"./yaml.d.ts"
"vite/client"
],
"strict": true,
"strictNullChecks": true,
Expand Down

0 comments on commit 31f0994

Please sign in to comment.