-
Notifications
You must be signed in to change notification settings - Fork 641
npm: slim down distributed files. #147
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
Conversation
|
This is effectively the inverse effect of .npmignore (which we have), so we should pick one and crown it the victor. 👑 |
|
Oh, wow. Didn't know we had that! I prefer a whitelist, and less root level dot file noise. I'll update the PR to remove that file, then leave it to the judges 🔨 |
d8e2cee to
4cd3a0a
Compare
|
A whitelist will be shorter than the So at the end of the day, I'm really indifferent as long as it's done correctly. 👍 |
|
That final statement is a lie, I changed my mind. I like the blacklist / .npmignore even if it means more dotfiles. |
This should be done by cloning the repository, not by sorting through files in a
I think each are as likely to cause problems if misused, but since "main" is defined in package.json to point to "lib", along with our dependencies, our scripts, etc. it makes the most sense to me to continue to use that as the source of truth of how we define our project.
npm includes the readme by default. |
Fair enough. Don't really know what the convention is for that but I always like to run tests on the specific version installed rather than trying to track it down, clone and checkout.. Some projects exclude tests, I like to keep them in but that's just me.
Tru dat.
Didn't know this! 👍 You know what you're doing, carry on 😄 |
4cd3a0a to
044eaf5
Compare
npm: slim down distributed files.
*build!: Update library to use Node 12
*build!: Update library to use Node 12
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/2f68300a-9812-4342-86c6-33ab267ece4f/targets Source-Link: googleapis/synthtool@be74d3e
* chore(main): release 2.1.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Source-Link: googleapis/synthtool@d229a12 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:74ab2b3c71ef27e6d8b69b1d0a0c9d31447777b79ac3cd4be82c265b45f37e5e
* Exclude property from index (doc) * Excludes the description property
https://www.npmjs.org/doc/files/package.json.html#files
Best to keep it slim 👍 Did I miss any files?