Skip to content

Conversation

@mcollina
Copy link
Member

@mcollina mcollina commented Oct 3, 2025

Summary

Adds .npmignore file to exclude development and CI-related files from npm packages:

  • .github/ directory
  • docsify/ directory
  • .nyc_output/ directory (test coverage)
  • coverage/ directory
  • *.png files

Impact

Reduces package size from 1.6 MB to 141.3 kB (91% reduction).

Test Plan

  • Verified with npm pack --dry-run
  • All tests pass

Excludes .github/, docsify/, .nyc_output/, coverage/, and PNG files.
Reduces package size from 1.6MB to 141.3KB (91% reduction).
@mcollina mcollina requested a review from jsumners October 3, 2025 14:08
Copy link
Member

@jsumners jsumners left a comment

Choose a reason for hiding this comment

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

I don't really like having to maintain the same list in two files. But I won't block it.

Comment on lines +4 to +5
.nyc_output/
coverage/
Copy link
Member

Choose a reason for hiding this comment

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

This is why we haven't done it before: these are already covered by .gitignore. With this PR merged, we'll have to maintain overlap. I wish .npmignore would augment instead of replace.

@mcollina mcollina merged commit 2b0bd9f into main Oct 6, 2025
12 checks passed
@mcollina mcollina deleted the add-npmignore branch October 6, 2025 11:54
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.

3 participants