-
Notifications
You must be signed in to change notification settings - Fork 0
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
build(package): use npmignore instead of files field #17
Conversation
➿ Code coverage
|
"lint": "eslint index.js src/", | ||
"prettier": "prettier --write src/ index.js", | ||
"test": "jest --env=node --colors --bail --detectOpenHandles --errorOnDeprecated --noStackTrace src/", | ||
"test.coverage": "run-s test --coverage --coverageDirectory .coverage", | ||
"test.watch": "run-s test --watchAll", | ||
"generate-docs": "jsdoc -c jsdoc.json" | ||
"test.watch": "run-s test --watchAll" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No actual changes here: just key sorting on package.json
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't remember if semantic-release uses yarn or npm under the hood, but we should avoid packaging test files, so 👍
Thanks!
@@ -22,50 +22,68 @@ | |||
}, | |||
"license": "MIT", | |||
"author": "Flybondi <dev@flybondi.com> (https://flybondi.com)", | |||
"sideEffects": false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gold plating? is this related with #16?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is. Harmless for now.
@crash7 Regardless, test files are definitely being included in the tarball today. ❯ tree node_modules/@flybondi/ramda-land
node_modules/@flybondi/ramda-land
├── CHANGELOG.md
├── LICENSE
├── README.md
├── index.js
├── package.json
└── src
├── all-to-lower-upper.js
├── all-to-lower-upper.test.js
├── always-new.js
├── always-new.test.js
# ... |
🎉 This PR is included in version 4.0.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
.npmignore
rules are ignored byyarn
if also defining a"files"
fields inpackage.json
. This made*.test.js
files be included in the final package onpublish
orpack
, while also generating inconsistent packages if usingyarn
vs.npm
."sideEffects": false
topackage.json
.