-
Notifications
You must be signed in to change notification settings - Fork 595
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
npm: slim down distributed files. #147
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
#147) * build(node): add feat in node post-processor to add client library version number in snippet metadata Co-authored-by: Benjamin E. Coe <[email protected]> Source-Link: googleapis/synthtool@d337b88 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:d106724ad2a96daa1b8d88de101ba50bdb30b8df62ffa0aa2b451d93b4556641
🤖 I have created a release *beep* *boop* --- ## [2.0.2](https://togithub.com/googleapis/nodejs-iam-credentials/compare/v2.0.1...v2.0.2) (2022-11-10) ### Bug Fixes * Allow passing gax instance to client constructor ([#145](https://togithub.com/googleapis/nodejs-iam-credentials/issues/145)) ([e3cfeba](https://togithub.com/googleapis/nodejs-iam-credentials/commit/e3cfebad3d72c4e844d95758d8571f8969c94ab4)) * better support for fallback mode ([e3cfeba](https://togithub.com/googleapis/nodejs-iam-credentials/commit/e3cfebad3d72c4e844d95758d8571f8969c94ab4)) * Change import long to require ([#146](https://togithub.com/googleapis/nodejs-iam-credentials/issues/146)) ([cbd8f76](https://togithub.com/googleapis/nodejs-iam-credentials/commit/cbd8f76476b6ab2f37f47f1597375af2937f96e2)) * **deps:** Use google-gax v3.5.2 ([#156](https://togithub.com/googleapis/nodejs-iam-credentials/issues/156)) ([4bd9f8b](https://togithub.com/googleapis/nodejs-iam-credentials/commit/4bd9f8b60e50ee6e6a3da08ef6d07999d81b39d7)) * Do not import the whole google-gax from proto JS ([#1553](https://togithub.com/googleapis/nodejs-iam-credentials/issues/1553)) ([#149](https://togithub.com/googleapis/nodejs-iam-credentials/issues/149)) ([ecd43bd](https://togithub.com/googleapis/nodejs-iam-credentials/commit/ecd43bdd58621e4d967d52d185fcda846b65e657)) * Preserve default values in x-goog-request-params header ([#150](https://togithub.com/googleapis/nodejs-iam-credentials/issues/150)) ([0cb6540](https://togithub.com/googleapis/nodejs-iam-credentials/commit/0cb6540ed6efcc905547845d71dd923ba5743d0e)) * Regenerated protos JS and TS definitions ([#159](https://togithub.com/googleapis/nodejs-iam-credentials/issues/159)) ([cece8c7](https://togithub.com/googleapis/nodejs-iam-credentials/commit/cece8c758df280204a4a1f4fd60b00c3161c1424)) * Remove pip install statements ([#1546](https://togithub.com/googleapis/nodejs-iam-credentials/issues/1546)) ([#148](https://togithub.com/googleapis/nodejs-iam-credentials/issues/148)) ([bc7ddbf](https://togithub.com/googleapis/nodejs-iam-credentials/commit/bc7ddbfbfb8151a6cdc6422bb345c6e993867539)) * use google-gax v3.3.0 ([ecd43bd](https://togithub.com/googleapis/nodejs-iam-credentials/commit/ecd43bdd58621e4d967d52d185fcda846b65e657)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [sinon](https://sinonjs.org/) ([source](https://togithub.com/sinonjs/sinon)) | [`^13.0.0` -> `^14.0.0`](https://renovatebot.com/diffs/npm/sinon/13.0.2/14.0.0) | [![age](https://badges.renovateapi.com/packages/npm/sinon/14.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/sinon/14.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/sinon/14.0.0/compatibility-slim/13.0.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/sinon/14.0.0/confidence-slim/13.0.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>sinonjs/sinon</summary> ### [`v14.0.0`](https://togithub.com/sinonjs/sinon/blob/HEAD/CHANGES.md#​1400) [Compare Source](https://togithub.com/sinonjs/sinon/compare/v13.0.2...v14.0.0) - [`c2bbd826`](https://togithub.com/sinonjs/sinon/commit/c2bbd82641444eb5b32822489ae40f185afbbf00) Drop node 12 (Morgan Roderick) > And embrace Node 18 > > See https://nodejs.org/en/about/releases/ *Released by Morgan Roderick on 2022-05-07.* </details> --- ### Configuration 📅 **Schedule**: "after 9am and before 3pm" (UTC). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-channel).
* build!: Update library to use Node 12
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 468790263 Source-Link: googleapis/googleapis@873ab45 Source-Link: googleapis/googleapis-gen@cb6f37a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2I2ZjM3YWVmZjJhMzQ3MmU0MGE3YmJhY2U4YzY3ZDc1ZTI0YmVlNSJ9
🤖 I have created a release \*beep\* \*boop\* --- ### [3.0.6](https://www.github.com/googleapis/nodejs-analytics-admin/compare/v3.0.5...v3.0.6) (2021-08-17) ### Bug Fixes * **deps:** google-gax v2.24.1 ([#146](https://www.github.com/googleapis/nodejs-analytics-admin/issues/146)) ([604e333](https://www.github.com/googleapis/nodejs-analytics-admin/commit/604e3335ed05b198e6e9f3eafd6eaf405126bd2f)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [jsdoc-fresh](https://togithub.com/googleapis/jsdoc-fresh) | [`^1.0.2` -> `^2.0.0`](https://renovatebot.com/diffs/npm/jsdoc-fresh/1.1.1/2.0.0) | [![age](https://badges.renovateapi.com/packages/npm/jsdoc-fresh/2.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/jsdoc-fresh/2.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/jsdoc-fresh/2.0.0/compatibility-slim/1.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/jsdoc-fresh/2.0.0/confidence-slim/1.1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>googleapis/jsdoc-fresh</summary> ### [`v2.0.0`](https://togithub.com/googleapis/jsdoc-fresh/blob/HEAD/CHANGELOG.md#​200-httpsgithubcomgoogleapisjsdoc-freshcomparev111v200-2022-05-18) [Compare Source](https://togithub.com/googleapis/jsdoc-fresh/compare/v1.1.1...v2.0.0) ##### ⚠ BREAKING CHANGES - update library to use Node 12 ([#​108](https://togithub.com/googleapis/jsdoc-fresh/issues/108)) ##### Build System - update library to use Node 12 ([#​108](https://togithub.com/googleapis/jsdoc-fresh/issues/108)) ([e61c223](https://togithub.com/googleapis/jsdoc-fresh/commit/e61c2238db8900e339e5fe7fb8aea09642290182)) ##### [1.1.1](https://www.github.com/googleapis/jsdoc-fresh/compare/v1.1.0...v1.1.1) (2021-08-11) ##### Bug Fixes - **build:** migrate to using main branch ([#​83](https://www.togithub.com/googleapis/jsdoc-fresh/issues/83)) ([9474adb](https://www.github.com/googleapis/jsdoc-fresh/commit/9474adbf0d559d319ff207397ba2be6b557999ac)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 9am and before 3pm" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-service-management).
* 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
https://www.npmjs.org/doc/files/package.json.html#files
Best to keep it slim 👍 Did I miss any files?