Skip to content

Commit cc16b51

Browse files
committed
chore: more debug console
1 parent 97b0689 commit cc16b51

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/config.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { GitHooksConfig } from './types'
2-
import { resolve } from 'node:path'
2+
import process from 'node:process'
33
import { loadConfig } from 'bunfig'
44

55
export const defaultConfig: GitHooksConfig = {
@@ -11,8 +11,8 @@ export const defaultConfig: GitHooksConfig = {
1111
// eslint-disable-next-line antfu/no-top-level-await
1212
export const config: GitHooksConfig = await loadConfig({
1313
name: 'git-hooks',
14-
cwd: resolve(__dirname, '..'),
14+
cwd: process.cwd(),
1515
defaultConfig,
1616
})
1717

18-
console.log('cwd', resolve(__dirname, '..'))
18+
console.log('config', process.cwd())

0 commit comments

Comments
 (0)