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

chore: use npm-packlist to calculate packed files in cleanup-script #26657

Merged
merged 1 commit into from
Aug 31, 2020

Conversation

wardpeet
Copy link
Contributor

@wardpeet wardpeet commented Aug 27, 2020

Description

I changed clean-scripts directive to use npm-packlist to figure out the right files instead our own logic. This takes care of README.md, package.json, main, ...

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Aug 27, 2020
@wardpeet wardpeet changed the title chore: uniform packages and update clean script chore: uniform packages npmignore & gitignore Aug 28, 2020
@wardpeet wardpeet changed the title chore: uniform packages npmignore & gitignore chore: use npm-packagelist to calculate packed files in clean-script Aug 28, 2020
@wardpeet wardpeet changed the title chore: use npm-packagelist to calculate packed files in clean-script chore: use npm-packlist to calculate packed files in cleanup-script Aug 28, 2020
Copy link
Contributor

@vladar vladar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, but curious if something was wrong with our own logic? It doesn't look too complicated 🤔

@vladar vladar removed the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Aug 28, 2020
@wardpeet
Copy link
Contributor Author

wardpeet commented Aug 31, 2020

@vladar it doesn't take care of things like README.md, main scripts being ignored by default, ...

See https://docs.npmjs.com/files/package.json#files

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