* 🐛 fix(githook.ts): fix HOOK_PATH import URL

The HOOK_PATH import URL was incorrect and has been fixed to point to the correct location.
This commit is contained in:
di-sukharev
2023-03-06 21:49:19 +08:00
parent 757faba0c4
commit 3859533eff

View File

@@ -20,7 +20,9 @@ export const hookCommand = command(
parameters: ['<set/unset>']
},
async (argv) => {
const HOOK_PATH = fileURLToPath(new URL('out/cli.cjs', import.meta.url));
const HOOK_PATH = fileURLToPath(
new URL('../../out/cli.cjs', import.meta.url)
);
try {
await assertGitRepo();