-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add "files" entry in package.json or .npmignore #28
Comments
I've added the tests to the ignore-file now. I think the README should be in the directory for local reference (through node_modules) |
I think it's easier to specify the files you actually want to include in the "files" property. The README file is never ignored by npm:
|
I'd agree with you in some cases, but in this case I think explicitly setting what files that should be included would be longer than the ignore list. And I'd also rather have some extra files than forget to add the a file to the include list and break a publish. |
In this case I suppose you only need: package.json {
...
"files": [
"bin",
"lib",
"index.js"
]
} |
Some files aren't needed when using the package as a dependency. It'd be great if you specify what are those files (.npmignore) or what are the files that are needed ("files" property in package.json). See https://docs.npmjs.com/misc/developers#keeping-files-out-of-your-package
The text was updated successfully, but these errors were encountered: