File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/nimiq-vitepress-theme/src Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import type { Plugin } from 'vite'
22import { exec } from 'node:child_process'
33import { promisify } from 'node:util'
44import { GitChangelog } from '@nolebase/vitepress-plugin-git-changelog/vite'
5+ import { dirname } from 'pathe'
56import { groupIconVitePlugin } from './code-groups/vite'
67
78export interface NimiqVitepressVitePluginOptions {
@@ -15,7 +16,7 @@ export async function NimiqVitepressVitePlugin(_options: NimiqVitepressVitePlugi
1516
1617 const externalPlugins : Plugin [ ] = [ ]
1718
18- const repoURL = await execAsync ( 'git config --get remote.origin.url' , { cwd : __dirname } ) . then ( result => result . stdout . trim ( ) ) . catch ( ( ) => null )
19+ const repoURL = await execAsync ( 'git config --get remote.origin.url' , { cwd : dirname ( '.' ) } ) . then ( result => result . stdout . trim ( ) ) . catch ( ( ) => null )
1920 if ( repoURL )
2021 externalPlugins . push ( GitChangelog ( { repoURL } ) )
2122
You can’t perform that action at this time.
0 commit comments