fix(cli): expose hunkdiff npm exec alias#295
Conversation
Greptile SummaryThis PR fixes issue #276 by adding
Confidence Score: 4/5Safe to merge — the core fix is a minimal, correct two-line addition across The scripts/stage-prebuilt-npm.ts — the hardcoded Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["npm exec hunkdiff\n/ npx hunkdiff"] --> B["npm resolves 'hunkdiff'\nbin alias in package.json"]
C["npm exec hunk\n/ npx hunk"] --> D["npm resolves 'hunk'\nbin alias in package.json"]
B --> E["./bin/hunk.cjs\n(CJS wrapper)"]
D --> E
E --> F["Launches Bun +\nsrc/main.tsx"]
G["build:prebuilt:npm script"] --> H["stage-prebuilt-npm.ts"]
H --> I["Staged meta-package\npackage.json\n(bin: hunk + hunkdiff)"]
I --> J["Published npm artifact\nhunkdiff@x.y.z"]
|
Summary
hunkdiffas a second bin alias pointing at the existing wrapperhunkandhunkdiffFixes #276.
Verification
npx -y hunkdiff@0.11.1 --versioncurrently fails withsh: 1: hunk: not found(reproduced locally against the published package)npm exec --package=./hunkdiff-0.12.0-beta.2.tgz hunkdiff -- skill pathresolves successfully