Compare commits

...

2 Commits

Author SHA1 Message Date
di-sukharev
4fa438ab17 0.0.12 2023-03-06 21:00:50 +08:00
di-sukharev
4ad7a5f779 * 🐛 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.
2023-03-06 21:00:41 +08:00
4 changed files with 7 additions and 4 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

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "open-commit",
"version": "0.0.11",
"version": "0.0.12",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "open-commit",
"version": "0.0.11",
"version": "0.0.12",
"license": "ISC",
"dependencies": {
"@clack/prompts": "^0.6.1",

View File

@@ -1,6 +1,6 @@
{
"name": "opencommit",
"version": "0.0.11",
"version": "0.0.12",
"description": "AI generates conventional commits with mind-blowing accuracy.",
"keywords": [
"git",

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();