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

The import path for HOOK_PATH was incorrect, causing the file to not be found. The path has been updated to correctly reference the cli.cjs file.
This commit is contained in:
di-sukharev
2023-03-06 21:07:03 +08:00
parent 9ce961ccc0
commit 6e896ec428

View File

@@ -20,7 +20,7 @@ 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('cli.cjs', import.meta.url));
try {
await assertGitRepo();