We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97b0689 commit cc16b51Copy full SHA for cc16b51
src/config.ts
@@ -1,5 +1,5 @@
1
import type { GitHooksConfig } from './types'
2
-import { resolve } from 'node:path'
+import process from 'node:process'
3
import { loadConfig } from 'bunfig'
4
5
export const defaultConfig: GitHooksConfig = {
@@ -11,8 +11,8 @@ export const defaultConfig: GitHooksConfig = {
11
// eslint-disable-next-line antfu/no-top-level-await
12
export const config: GitHooksConfig = await loadConfig({
13
name: 'git-hooks',
14
- cwd: resolve(__dirname, '..'),
+ cwd: process.cwd(),
15
defaultConfig,
16
})
17
18
-console.log('cwd', resolve(__dirname, '..'))
+console.log('config', process.cwd())
0 commit comments