Skip to content

Commit 1e83ddf

Browse files
authored
docs: add setup guide for bun (#4488)
1 parent f65205b commit 1e83ddf

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/guides/local-setup.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,19 @@ npm pkg set scripts.commitlint="commitlint --edit"
9898
echo "pnpm commitlint \${1}" > .husky/commit-msg
9999
```
100100
101+
== bun
102+
103+
```sh
104+
bun add --dev husky
105+
106+
bunx husky install
107+
108+
# Add commit message linting to commit-msg hook
109+
echo "bunx commitlint --edit \$1" > .husky/commit-msg
110+
# Windows users should use ` to escape dollar signs
111+
echo "bunx commitlint --edit `$1" > .husky/commit-msg
112+
```
113+
101114
== deno
102115
103116
```sh

0 commit comments

Comments
 (0)