Skip to content

fix: trim published package, dead scripts, and lint config#2026

Merged
no23reason merged 1 commit into
masterfrom
simple2
Jun 28, 2026
Merged

fix: trim published package, dead scripts, and lint config#2026
no23reason merged 1 commit into
masterfrom
simple2

Conversation

@no23reason

Copy link
Copy Markdown
Owner

Summary

Leanness pass following the Parcel→Vite swap (#2025). Mostly a packaging-correctness fix plus dead-weight removal.

🔴 Published package was shipping junk

npm pack --dry-run on master ships 12 files including a 413 kB yarn-error.log and the dev configs (vite.config.ts, vitest.config.ts, vitest.setup.ts, eslint.config.mjs). Cause: .npmignore is a blocklist and silently leaks any file it doesn't enumerate.

Fix: replace .npmignore with a "files": ["dist-modules"] allowlist. Tarball is now 5 files (dist-modules/, README, LICENSE, package.json; npm also force-includes CHANGELOG). New dev files can never leak again.

Other cleanups

  • Dead scripts: drop precommit / prepush — no husky or git hooks are installed, so npm never ran them. Removes pretty-quick (its only consumer).
  • Drop @testing-library/jest-dom: rewrite the 4 toBeInTheDocument() asserts as toBeTruthy(). findByText already rejects when the element is absent, so the assertion still holds.
  • Collapse eslint config to recommended + strictTypeChecked + stylisticTypeChecked — the removed presets (recommended, strict, stylistic, recommendedTypeChecked) are all subsets of those.
  • Delete stale on-disk dist/ (old Parcel output) and yarn-error.log.

Removes 15 npm packages.

Verification

  • npm run test:lint → clean (trimmed config, same results)
  • npm test → 4/4 pass (after jest-dom removal)
  • npm run dist → clean
  • npm pack --dry-run → 5 files, no log, no configs

🤖 Generated with Claude Code

- ship only dist-modules via a files allowlist; delete .npmignore
  (blocklist was leaking dev configs into the published tarball
  now 5 files instead of 12)
- drop dead precommit/prepush scripts and pretty-quick (no husky/git
  hooks were wired, so they never ran)
- drop @testing-library/jest-dom; rewrite the 4 toBeInTheDocument()
  asserts as toBeTruthy() (findByText already throws when absent)
- collapse the eslint config to recommended + strictTypeChecked +
  stylisticTypeChecked (the removed presets were subsets)

Removes 15 npm packages.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@no23reason no23reason changed the title chore: trim published package, dead scripts, and lint config fix: trim published package, dead scripts, and lint config Jun 28, 2026
@no23reason no23reason merged commit 453584c into master Jun 28, 2026
6 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 4.5.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant