Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove tests from npm package to reduce npm package size #73

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

boidolr
Copy link

@boidolr boidolr commented Aug 15, 2023

Removing the tests (and GitHub workflows) from the package by only including the root files reduces the package file by about half (tested with npm 9.8.0).
Before:

❯ npm pack
...
npm notice === Tarball Details ===
npm notice name:          fastq
npm notice version:       1.15.0
npm notice filename:      fastq-1.15.0.tgz
npm notice package size:  8.6 kB
npm notice unpacked size: 39.4 kB
npm notice shasum:        95987241d4b02262d717bf1d57df7542a4e5ad8d
npm notice integrity:     sha512-JewKD7kBsuCx1[...]1kZVl0dlXgXFQ==
npm notice total files:   14

After:

❯ npm pack
...
npm notice === Tarball Details ===
npm notice name:          fastq
npm notice version:       1.15.0
npm notice filename:      fastq-1.15.0.tgz
npm notice package size:  5.5 kB
npm notice unpacked size: 19.2 kB
npm notice shasum:        943cf41058968f769c197f547381b0a108836290
npm notice integrity:     sha512-lBOEBRXpJXBdJ[...]YcOvc5TaizdbA==
npm notice total files:   8

Resolves #46

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.

Test files are being pushed to NPM
1 participant