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

Warn if no files field in package.json or .npmignore file present #411

Merged
merged 1 commit into from Jul 3, 2019

Conversation

cironunes
Copy link
Contributor

@cironunes cironunes commented May 21, 2019

I've read the discussion in #103 and I though: why not put a PR with some initial work up and see where it takes us?

I'm currently checking if the project has either a files field specified in the package.json or an .npmignore file in the root folder and just warning about it.

Thoughts?


IssueHunt Summary

IssueHunt has been backed by the following sponsors. Become a sponsor

@cironunes cironunes force-pushed the 103-npmignore-files branch 2 times, most recently from e9d15ae to 88e04ff Compare May 21, 2019 11:40
source/util.js Outdated Show resolved Hide resolved
source/util.js Outdated Show resolved Hide resolved
source/util.js Outdated Show resolved Hide resolved
source/util.js Outdated Show resolved Hide resolved
source/cli.js Outdated Show resolved Hide resolved
source/util.js Outdated Show resolved Hide resolved
@cironunes cironunes force-pushed the 103-npmignore-files branch 3 times, most recently from e5daf5f to 9409655 Compare June 8, 2019 08:04
source/util.js Outdated Show resolved Hide resolved
source/util.js Outdated Show resolved Hide resolved
@cironunes cironunes force-pushed the 103-npmignore-files branch 8 times, most recently from e8bfdd7 to 479d49c Compare June 12, 2019 21:21
@cironunes
Copy link
Contributor Author

Fixed the conflict. Build is green again.

source/util.js Outdated Show resolved Hide resolved
@cironunes cironunes force-pushed the 103-npmignore-files branch 2 times, most recently from 0babe33 to a439c34 Compare June 16, 2019 04:32
source/npm/util.js Outdated Show resolved Hide resolved
source/npm/util.js Outdated Show resolved Hide resolved
@sindresorhus
Copy link
Owner

Can you mention it in https://github.com/sindresorhus/np#why ?

@cironunes
Copy link
Contributor Author

@sindresorhus I mentioned it and applied your other requests as well.

@sindresorhus sindresorhus merged commit c790d37 into sindresorhus:master Jul 3, 2019
@sindresorhus
Copy link
Owner

Thanks :)

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.

None yet

3 participants