Skip to content

fix(plugin): add .npmignore to exclude test/runtime artifacts (#1205)#1209

Merged
JeremyDev87 merged 1 commit into
masterfrom
taskmaestro/1775223770/pane-2
Apr 3, 2026
Merged

fix(plugin): add .npmignore to exclude test/runtime artifacts (#1205)#1209
JeremyDev87 merged 1 commit into
masterfrom
taskmaestro/1775223770/pane-2

Conversation

@JeremyDev87

Copy link
Copy Markdown
Owner

Summary

  • Add hooks/.npmignore to exclude development/runtime files from the npm package
  • Add root .npmignore for build artifact exclusions (with note about files field limitation)
  • Root .npmignore cannot override package.json files field per npm docs — subdirectory .npmignore is required

Excluded files

Type Count Pattern
.omc/ runtime state 4 .omc/
test_*.py (hooks root) 4 test_*.py
hooks/tests/ directory 9 tests/
hooks/lib/test_*.py 1 lib/test_*.py

Impact

Metric Before After
Total files 64 50
Package size 109.5 KB 87.8 KB
Unpacked size 447.3 KB 320.3 KB

Production files (hooks/lib/*.py, hooks/*.py, commands/, .claude-plugin/) are unaffected.

Closes #1205

Test plan

  • npm pack --dry-run confirms no .omc/, test_*.py, tests/ files
  • Production files still included (hooks/lib/*.py, commands/, etc.)
  • yarn lint passes
  • yarn typecheck passes
  • yarn test passes (71 tests)

Add hooks/.npmignore to exclude development and runtime files from the
npm package. Root .npmignore cannot override package.json "files" field,
so subdirectory-level .npmignore is used for hooks/ exclusions.

Excluded:
- .omc/ runtime state files
- test_*.py test files (hooks root and lib/)
- tests/ directory
- __pycache__/, *.pyc, *.pyo, .pytest_cache/

Result: 64 → 50 files, 447KB → 320KB unpacked size.
@JeremyDev87 JeremyDev87 added the fix label Apr 3, 2026
@vercel

vercel Bot commented Apr 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
codingbuddy-landing Ready Ready Preview, Comment Apr 3, 2026 1:55pm

@JeremyDev87 JeremyDev87 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Review complete — all comments addressed

Code Review:

  • Root .npmignore + nested hooks/.npmignore approach — verified working
  • npm pack: 69 files 448KB → 50 files 320KB (19 files, 128KB removed)
  • Excluded: .omc/ runtime state, test_*.py, tests/, lib/test_*.py
  • All production hooks preserved
  • CI: 27/27 checks pass (Vercel preview pending, non-blocking)

LGTM

@JeremyDev87 JeremyDev87 self-assigned this Apr 3, 2026
@JeremyDev87 JeremyDev87 merged commit 1143be9 into master Apr 3, 2026
28 checks passed
@JeremyDev87 JeremyDev87 deleted the taskmaestro/1775223770/pane-2 branch April 3, 2026 13:59
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.

fix(plugin): exclude test files and runtime artifacts from npm package

1 participant