Skip to content

Commit 85d4de9

Browse files
authored
Merge pull request #27 from fastify/fix-hook
Fix project root resolution
2 parents ebb5797 + 786ea11 commit 85d4de9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

install.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const fs = require('fs')
77
const path = require('path')
88
const os = require('os')
99
const hook = path.join(__dirname, 'hook')
10-
const root = path.resolve(__dirname, '..', '..')
10+
const root = path.resolve(__dirname, '..', '..', '..')
1111
const exists = fs.existsSync || path.existsSync
1212

1313
//

uninstall.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const fs = require('fs')
44
const path = require('path')
55
const exists = fs.existsSync || path.existsSync
6-
const root = path.resolve(__dirname, '..', '..')
6+
const root = path.resolve(__dirname, '..', '..', '..')
77
let git = path.resolve(root, '.git')
88

99
//

0 commit comments

Comments
 (0)