Skip to content

Commit 31f0994

Browse files
authored
fix(git-changelog): exposure types and composables (#377)
* fix: exposure types and composables * fix: types path
1 parent 03f2ff5 commit 31f0994

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

packages/vitepress-plugin-git-changelog/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
"import": "./dist/locales/index.mjs",
4848
"require": "./dist/locales/index.cjs"
4949
},
50-
"./types": {
51-
"types": "./dist/client/index.d.ts"
50+
"./types/*": {
51+
"types": "./dist/types/*"
5252
},
5353
"./vite": {
5454
"types": "./dist/vite/index.d.ts",
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from './changelog'
2+
export * from './i18n'

packages/vitepress-plugin-git-changelog/src/client/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ const components = {
1515
NolebaseGitContributors,
1616
}
1717

18+
export * from './composables'
19+
1820
export const NolebaseGitChangelogPlugin: Plugin<Options[]> = {
1921
install(app, options?) {
2022
if (typeof options !== 'undefined' && typeof options === 'object')

packages/vitepress-plugin-git-changelog/yaml.d.ts renamed to packages/vitepress-plugin-git-changelog/src/locales/yaml.d.ts

File renamed without changes.

packages/vitepress-plugin-git-changelog/src/client/virtual.d.ts renamed to packages/vitepress-plugin-git-changelog/src/types/virtual.d.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
declare module 'virtual:nolebase-git-changelog' {
2-
import type { Changelog, Commit } from '../types'
3-
4-
export type { Commit }
2+
import type { Changelog } from './types'
53

64
const changelog: Changelog
75
export default changelog

packages/vitepress-plugin-git-changelog/tsconfig.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
]
1313
},
1414
"types": [
15-
"vite/client",
16-
"./src/client/virtual.d.ts",
17-
"./yaml.d.ts"
15+
"vite/client"
1816
],
1917
"strict": true,
2018
"strictNullChecks": true,

0 commit comments

Comments
 (0)