fix(package): include hooks/*.sh files in npm package (#1852 #1862) (#1864)

The "files" field in package.json listed "hooks/dist" instead of "hooks",
which excluded gsd-session-state.sh, gsd-validate-commit.sh, and
gsd-phase-boundary.sh from the npm tarball. Any fresh install from the
registry produced broken shell hook registrations.

Fix: replace "hooks/dist" with "hooks" so the full hooks/ directory is
bundled, covering both the compiled .js files (in hooks/dist/) and the
.sh source hooks at the top of hooks/.

Adds regression test in tests/package-manifest.test.cjs.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Tom Boucher
2026-04-06 15:13:23 -04:00
committed by GitHub
parent 09e56893c8
commit 0e06a44deb
2 changed files with 77 additions and 1 deletions

View File

@@ -10,7 +10,7 @@
"commands",
"get-shit-done",
"agents",
"hooks/dist",
"hooks",
"scripts"
],
"keywords": [