Skip to content

chore: packaging and repo hygiene#54

Merged
ungoldman merged 4 commits into
mainfrom
hygiene
Jun 14, 2026
Merged

chore: packaging and repo hygiene#54
ungoldman merged 4 commits into
mainfrom
hygiene

Conversation

@ungoldman

Copy link
Copy Markdown
Owner

Small packaging and repo cleanups: drop a dead ignore file, tidy .gitignore, mark the package side-effect free, and build at publish time instead of on every install.

Changes

  • Remove .npmignore. The files allowlist already governs the tarball, and the file referenced paths that no longer exist (tests/, example.ts).
  • .gitignore: add coverage and *.log.
  • Add sideEffects: false so bundlers can tree-shake; importing hyperaxe has no import-time side effects.
  • Switch prepare to prepublishOnly so the build runs ahead of publish, not on every install. Since prepublishOnly does not run on npm pack, test-pack.sh now builds first so it still packs a fresh dist.

Verification

npm test, npm run coverage (100%), and npm run test:pack (from a clean tree) pass locally.

The "files" allowlist in package.json already governs the tarball, and
.npmignore referenced paths that no longer exist (tests/, example.ts).
sideEffects: false lets bundlers tree-shake. Importing hyperaxe only
defines factories; there are no import-time side effects.
Switch prepare to prepublishOnly so the build runs ahead of npm publish
rather than on every install. Since prepublishOnly (unlike prepare)
does not run on npm pack, have test-pack.sh build first so it still
packs a fresh dist, matching what publish does.
@ungoldman ungoldman merged commit 13af9fc into main Jun 14, 2026
3 checks passed
@ungoldman ungoldman deleted the hygiene branch June 14, 2026 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant