Skip to content

Commit ecf9255

Browse files
committed
fix: typo to binary script
1 parent d406961 commit ecf9255

5 files changed

Lines changed: 10 additions & 6 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@vnphanquang/githooks": patch
3+
---
4+
5+
add missing subpath to binary script in docs

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,13 @@ Utility for setting up git hooks. A Deno port of [husky]
1515
2. Run setup script
1616

1717
```bash
18-
deno run -A jsr:@vnphanquang/githooks init
18+
deno run -A jsr:@vnphanquang/githooks/bin init
1919
```
2020

2121
Alternatively, run with verbose permissions **at project root**:
2222

2323
```bash
24-
deno run --allow-read="." --allow-write"./.githooks" --allow-run="git" jsr:@vnphanquang/githooks
25-
init
24+
deno run --allow-read="." --allow-write"./.githooks" --allow-run="git" jsr:@vnphanquang/githooks/bin init
2625
```
2726

2827
3. Edit `./githooks/pre-commit` to your needs. Alternatively, you can create any git hook script by adding

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vnphanquang/githooks",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"exports": {
55
".": "./src/mod.ts",
66
"./bin": "./src/bin.ts",

src/bin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* To see the current version and what commands are available, run:
77
*
88
* ```bash
9-
* deno run -A jsr:@vnphanquang/githooks
9+
* deno run -A jsr:@vnphanquang/githooks/bin
1010
* ```
1111
*/
1212

src/init.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { configureHooksPath, getGitRootDir } from './git.ts';
2424
*
2525
* @example Run `init` from the command line:
2626
* ```sh
27-
* deno run -A jsr:@vnphanquang/githooks init
27+
* deno run -A jsr:@vnphanquang/githooks/bin init
2828
* ```
2929
*
3030
* @param cwd - Current working directory

0 commit comments

Comments
 (0)