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

Exclude tests from publication #157

Closed
wants to merge 1 commit into from
Closed

Exclude tests from publication #157

wants to merge 1 commit into from

Conversation

nexdrew
Copy link
Contributor

@nexdrew nexdrew commented Apr 6, 2016

This came up recently in yargs/yargs#468 (comment).

Would be nice to trim the package size a bit by excluding tests, and I prefer whitelisting files in package.json over blacklisting files in .npmignore, but I can be persuaded otherwise.

Here is the result of npm pack before and after this change:

# BEFORE
x package/package.json
x package/.npmignore
x package/README.md
x package/LICENSE
x package/semver.js
x package/bin/semver
x package/.travis.yml
x package/range.bnf
x package/test/big-numbers.js
x package/test/clean.js
x package/test/gtr.js
x package/test/index.js
x package/test/ltr.js
x package/test/major-minor-patch.js

# AFTER
x package/package.json
x package/README.md
x package/LICENSE
x package/semver.js
x package/bin/semver
x package/range.bnf

@isaacs isaacs closed this in 3643836 Jun 28, 2016
@nexdrew nexdrew deleted the dont-publish-test branch June 28, 2016 18:36
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