* 🐛 fix(githook.ts): fix file path in URL constructor

The file path in the URL constructor was incorrect, causing the file to not be found. The file path has been corrected to point to the correct location.
This commit is contained in:
di-sukharev
2023-03-06 21:03:25 +08:00
parent 4fa438ab17
commit 1a2f6416cc

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