* 🐛 fix(githook.ts): change cli file extension from .mjs to .cjs

The file extension of the cli file was changed from .mjs to .cjs to ensure compatibility with Node.js versions that do not support ES modules.
This commit is contained in:
di-sukharev
2023-03-06 19:21:24 +08:00
parent 0061816b6a
commit b1ec69e4dd

View File

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