Skip to content

Commit 903865b

Browse files
authored
chore: add oxfmt formatting commands (#58)
* chore: add oxfmt formatting commands * chore: sync the bun lockfile
1 parent 81c14f1 commit 903865b

4 files changed

Lines changed: 86 additions & 30 deletions

File tree

.oxfmtrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"ignorePatterns": []
3+
}

CONTRIBUTING.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ bun test
3434
bun run test:tty-smoke
3535
```
3636

37+
Format the JS/TS/JSON codebase:
38+
39+
```bash
40+
bun run format
41+
bun run format:check
42+
```
43+
3744
Build and verify the npm package:
3845

3946
```bash

bun.lock

Lines changed: 43 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 33 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,23 @@
22
"name": "hunkdiff",
33
"version": "0.4.0",
44
"description": "Desktop-inspired terminal diff viewer for understanding agent-authored changesets.",
5-
"type": "module",
6-
"packageManager": "bun@1.3.10",
5+
"keywords": [
6+
"ai",
7+
"code-review",
8+
"diff",
9+
"git",
10+
"terminal",
11+
"tui"
12+
],
13+
"homepage": "https://github.com/modem-dev/hunk#readme",
14+
"bugs": {
15+
"url": "https://github.com/modem-dev/hunk/issues"
16+
},
17+
"license": "MIT",
18+
"repository": {
19+
"type": "git",
20+
"url": "git+https://github.com/modem-dev/hunk.git"
21+
},
722
"bin": {
823
"hunk": "./bin/hunk.cjs"
924
},
@@ -14,6 +29,10 @@
1429
"README.md",
1530
"LICENSE"
1631
],
32+
"type": "module",
33+
"publishConfig": {
34+
"access": "public"
35+
},
1736
"scripts": {
1837
"start": "bun run src/main.tsx",
1938
"dev": "bun --watch src/main.tsx",
@@ -24,6 +43,8 @@
2443
"stage:prebuilt:release": "bun run ./scripts/stage-prebuilt-npm.ts --artifact-root ./dist/release/artifacts",
2544
"install:bin": "bash ./scripts/install-bin.sh",
2645
"typecheck": "tsc --noEmit",
46+
"format": "oxfmt --write .",
47+
"format:check": "oxfmt --check .",
2748
"test": "bun test",
2849
"test:tty-smoke": "HUNK_RUN_TTY_SMOKE=1 bun test test/tty-render-smoke.test.ts",
2950
"check:pack": "bun run ./scripts/check-pack.ts",
@@ -35,33 +56,6 @@
3556
"bench:highlight-prefetch": "bun run test/adjacent-highlight-prefetch-benchmark.ts",
3657
"bench:large-stream": "bun run test/large-stream-windowing-benchmark.ts"
3758
},
38-
"keywords": [
39-
"diff",
40-
"git",
41-
"tui",
42-
"terminal",
43-
"code-review",
44-
"ai"
45-
],
46-
"repository": {
47-
"type": "git",
48-
"url": "git+https://github.com/modem-dev/hunk.git"
49-
},
50-
"homepage": "https://github.com/modem-dev/hunk#readme",
51-
"bugs": {
52-
"url": "https://github.com/modem-dev/hunk/issues"
53-
},
54-
"engines": {
55-
"node": ">=18"
56-
},
57-
"publishConfig": {
58-
"access": "public"
59-
},
60-
"devDependencies": {
61-
"@types/bun": "latest",
62-
"@types/react": "^19.2.14",
63-
"typescript": "^5.9.3"
64-
},
6559
"dependencies": {
6660
"@opentui/core": "^0.1.88",
6761
"@opentui/react": "^0.1.88",
@@ -72,7 +66,16 @@
7266
"react": "^19.2.4",
7367
"zod": "^4.3.6"
7468
},
75-
"license": "MIT",
69+
"devDependencies": {
70+
"@types/bun": "latest",
71+
"@types/react": "^19.2.14",
72+
"oxfmt": "^0.41.0",
73+
"typescript": "^5.9.3"
74+
},
75+
"engines": {
76+
"node": ">=18"
77+
},
78+
"packageManager": "bun@1.3.10",
7679
"pi": {
7780
"skills": [
7881
"./skills"

0 commit comments

Comments
 (0)