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

* 📝 docs(TODO.md): add tasks for adding tests and making hook work
The HOOK_PATH import path was incorrect and has been fixed. The TODO list has been updated to include tasks for adding tests and making the hook work.
This commit is contained in:
di-sukharev
2023-03-06 21:00:41 +08:00
parent 5c0b31600f
commit 4ad7a5f779
2 changed files with 4 additions and 1 deletions

View File

@@ -2,4 +2,7 @@
- [] [build for both mjs and cjs](https://snyk.io/blog/best-practices-create-modern-npm-package/)
- [] make bundle smaller by properly configuring esbuild
- [] do // TODOs in the code
- [] batch small files in one request
- [] add tests
- [] make hook work

View File

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