Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"ignorePatterns": []
}
7 changes: 7 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ bun test
bun run test:tty-smoke
```

Format the JS/TS/JSON codebase:

```bash
bun run format
bun run format:check
```

Build and verify the npm package:

```bash
Expand Down
43 changes: 43 additions & 0 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 33 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,23 @@
"name": "hunkdiff",
"version": "0.4.0",
"description": "Desktop-inspired terminal diff viewer for understanding agent-authored changesets.",
"type": "module",
"packageManager": "bun@1.3.10",
"keywords": [
"ai",
"code-review",
"diff",
"git",
"terminal",
"tui"
],
"homepage": "https://github.com/modem-dev/hunk#readme",
"bugs": {
"url": "https://github.com/modem-dev/hunk/issues"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/modem-dev/hunk.git"
},
"bin": {
"hunk": "./bin/hunk.cjs"
},
Expand All @@ -14,6 +29,10 @@
"README.md",
"LICENSE"
],
"type": "module",
"publishConfig": {
"access": "public"
},
"scripts": {
"start": "bun run src/main.tsx",
"dev": "bun --watch src/main.tsx",
Expand All @@ -24,6 +43,8 @@
"stage:prebuilt:release": "bun run ./scripts/stage-prebuilt-npm.ts --artifact-root ./dist/release/artifacts",
"install:bin": "bash ./scripts/install-bin.sh",
"typecheck": "tsc --noEmit",
"format": "oxfmt --write .",
"format:check": "oxfmt --check .",
"test": "bun test",
"test:tty-smoke": "HUNK_RUN_TTY_SMOKE=1 bun test test/tty-render-smoke.test.ts",
"check:pack": "bun run ./scripts/check-pack.ts",
Expand All @@ -35,33 +56,6 @@
"bench:highlight-prefetch": "bun run test/adjacent-highlight-prefetch-benchmark.ts",
"bench:large-stream": "bun run test/large-stream-windowing-benchmark.ts"
},
"keywords": [
"diff",
"git",
"tui",
"terminal",
"code-review",
"ai"
],
"repository": {
"type": "git",
"url": "git+https://github.com/modem-dev/hunk.git"
},
"homepage": "https://github.com/modem-dev/hunk#readme",
"bugs": {
"url": "https://github.com/modem-dev/hunk/issues"
},
"engines": {
"node": ">=18"
},
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@types/bun": "latest",
"@types/react": "^19.2.14",
"typescript": "^5.9.3"
},
"dependencies": {
"@opentui/core": "^0.1.88",
"@opentui/react": "^0.1.88",
Expand All @@ -72,7 +66,16 @@
"react": "^19.2.4",
"zod": "^4.3.6"
},
"license": "MIT",
"devDependencies": {
"@types/bun": "latest",
"@types/react": "^19.2.14",
"oxfmt": "^0.41.0",
"typescript": "^5.9.3"
},
"engines": {
"node": ">=18"
},
"packageManager": "bun@1.3.10",
"pi": {
"skills": [
"./skills"
Expand Down
Loading