GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — npm: slim down distributed files. by stephenplusplus · Pull Request #147 · googleapis/google-cloud-node

Conversation

@stephenplusplus

@stephenplusplus stephenplusplus commented Aug 28, 2014

Copy link
Copy Markdown
Contributor

https://www.npmjs.org/doc/files/package.json.html#files

Best to keep it slim 👍 Did I miss any files?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ryanseys

ryanseys commented Aug 28, 2014

Copy link
Copy Markdown
Contributor

This is effectively the inverse effect of .npmignore (which we have), so we should pick one and crown it the victor. 👑

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus

stephenplusplus commented Aug 28, 2014

Copy link
Copy Markdown
Contributor Author

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 🔨

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus
stephenplusplus force-pushed the master branch from d8e2cee to 4cd3a0a Compare August 28, 2014 01:19
@ryanseys

ryanseys commented Aug 28, 2014

Copy link
Copy Markdown
Contributor

A whitelist will be shorter than the .npmignore blacklist if we really want to exclude a lot from npm publish but it's always nice to have more info available to the developer for debugging and whitelists are known to be more error-prone if not done correctly (ahem, Google IO 2014 @silvolu & @rakyll). E.g. README for npmjs.org to display is always nice, and tests so that Windows users can run tests from node_modules easily and report their errors 😄

So at the end of the day, I'm really indifferent as long as it's done correctly. 👍

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ryanseys

ryanseys commented Aug 28, 2014

Copy link
Copy Markdown
Contributor

That final statement is a lie, I changed my mind. I like the blacklist / .npmignore even if it means more dotfiles.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus

stephenplusplus commented Aug 28, 2014

Copy link
Copy Markdown
Contributor Author

but it's always nice to have more info available to the developer for debugging

This should be done by cloning the repository, not by sorting through files in a node_modules directory.

whitelists are known to be more error-prone if not done correctly

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.

E.g. README for npmjs.org to display is always nice

npm includes the readme by default.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ryanseys

ryanseys commented Aug 28, 2014

Copy link
Copy Markdown
Contributor

This should be done by cloning the repository

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.

I think each are as likely to cause problems if misused

Tru dat.

npm includes the readme by default.

Didn't know this! 👍

You know what you're doing, carry on 😄

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus
stephenplusplus force-pushed the master branch from 4cd3a0a to 044eaf5 Compare August 30, 2014 16:17
@stephenplusplus
npm: slim down distributed files.
044eaf5
rakyll pushed a commit that referenced this pull request Sep 2, 2014
Burcu Dogan
Merge pull request #147 from stephenplusplus/master
0ae0917
npm: slim down distributed files.
@rakyll
rakyll merged commit 0ae0917 into googleapis:master Sep 2, 2014
@snyk-bot snyk-bot mentioned this pull request May 21, 2020
[Snyk] Upgrade google-proto-files from 0.1.1 to 0.20.0 aknuds1/gcloud-node#1
Open
This was referenced Jul 21, 2021
[Snyk] Fix for 1 vulnerabilities enterstudio/google-cloud-node#108
Open
[Snyk] Fix for 1 vulnerabilities enterstudio/google-cloud-node#111
Open
[Snyk] Security upgrade google-gax from 0.10.8 to 0.14.4 enterstudio/google-cloud-node#113
Open
[Snyk] Fix for 1 vulnerabilities enterstudio/google-cloud-node#115
Open
[Snyk] Fix for 1 vulnerabilities enterstudio/google-cloud-node#116
Open
[Snyk] Fix for 1 vulnerabilities enterstudio/google-cloud-node#121
Open
chingor13 pushed a commit that referenced this pull request Aug 22, 2022
Benjamin E. Coe @JustinBeckwith
docs(test): removed exception for docs now on master (#147)
d873ffe
chingor13 pushed a commit that referenced this pull request Sep 12, 2022
@sofisl
build!: update library to use Node 12 (#147)
fa13e1c
*build!: Update library to use Node 12
chingor13 pushed a commit that referenced this pull request Sep 14, 2022
@sofisl
build!: update library to use Node 12 (#147)
d4a216e
*build!: Update library to use Node 12
@release-please release-please Bot mentioned this pull request Sep 14, 2022
chore: release main #3352
Merged
@sofisl sofisl mentioned this pull request Sep 15, 2022
migrate code from googleapis/nodejs-redis #3360
Merged
4 tasks
sofisl pushed a commit that referenced this pull request Sep 15, 2022
@yoshi-automation @JustinBeckwith
feat: add support for instance failover (#147)
5c1cda5
@sofisl sofisl mentioned this pull request Oct 11, 2022
migrate code from googleapis/nodejs-language #3395
Merged
4 tasks
sofisl pushed a commit that referenced this pull request Oct 11, 2022
@renovate @JustinBeckwith
chore(deps): update dependency eslint-plugin-node to v8 (#147)
7a661d5
@sofisl sofisl mentioned this pull request Oct 12, 2022
migrate code from googleapis/nodejs-bigquery-data-transfer #3399
Merged
4 tasks
sofisl pushed a commit that referenced this pull request Oct 12, 2022
@JustinBeckwith
fix: do not require projectId for samples (#147)
946aa96
@sofisl sofisl mentioned this pull request Oct 13, 2022
migrate code from googleapis/nodejs-phishing-protection #3406
Merged
4 tasks
sofisl pushed a commit that referenced this pull request Oct 13, 2022
@yoshi-automation
build: do not fail builds on codecov errors (#528) (#147)
4718889
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
This was referenced Jan 29, 2026
migrate code from googleapis/cloud-profiler-nodejs #7060
Closed
migrate code from googleapis/cloud-profiler-nodejs #7062
Closed
migrate code from googleapis/cloud-profiler-nodejs #7066
Closed
migrate code from googleapis/cloud-profiler-nodejs #7067
Closed
migrate code from googleapis/cloud-profiler-nodejs #7068
Closed
migrate code from googleapis/cloud-profiler-nodejs #7071
Closed
migrate code from googleapis/cloud-profiler-nodejs #7087
Merged
sofisl pushed a commit that referenced this pull request Feb 3, 2026
@renovate @JustinBeckwith
chore(deps): lock file maintenance (#147)
8207a74
@sofisl sofisl mentioned this pull request Feb 3, 2026
migrate code from googleapis/nodejs-bigquery #7111
Merged
4 tasks
sofisl pushed a commit that referenced this pull request Feb 4, 2026
@dpebot @JustinBeckwith
Update CI config (#147)
d56c16e
This was referenced Feb 4, 2026
migrate code from googleapis/nodejs-logging-bunyan #7136
Closed
migrate code from googleapis/nodejs-logging-bunyan #7137
Closed
migrate code from googleapis/nodejs-logging-bunyan #7138
Merged
migrate code from googleapis/nodejs-datastore #7148
Closed
sofisl pushed a commit that referenced this pull request Feb 5, 2026
@WalterHub @jmdobry
Shows how to exclude property from index (for docs) (#147)
d87d84c
* Exclude property from index (doc)

* Excludes the description property
GautamSharda pushed a commit that referenced this pull request Feb 5, 2026
@JustinBeckwith
chore: update sample lockfiles (#147)
ee66373
@GautamSharda GautamSharda mentioned this pull request Feb 5, 2026
migrate code from googleapis/nodejs-error-reporting #7169
Closed
4 tasks
GautamSharda pushed a commit that referenced this pull request Mar 5, 2026
@dpebot @JustinBeckwith
Re-generate library using /synth.py (#147)
fcc5251
@GautamSharda GautamSharda mentioned this pull request Mar 5, 2026
migrate code from googleapis/nodejs-logging #7514
Merged
4 tasks
sofisl pushed a commit that referenced this pull request Mar 5, 2026
@GautamSharda
Merge pull request #147 from googleapis/nodejs-googleapis-common-migr…
447396c
…ation

chore: Nodejs googleapis common migration
sofisl pushed a commit that referenced this pull request Mar 5, 2026
@callmehiphop @JustinBeckwith
docs: update contributing path in README (#147)
e80b2f2
@meltsufin meltsufin mentioned this pull request Mar 10, 2026
chore: migrate code from googleapis/nodejs-logging #7550
Merged
GautamSharda pushed a commit that referenced this pull request Mar 11, 2026
@callmehiphop
refactor(subscription): use unary rpcs for ack/modAck (#147)
a28d156
This was referenced Mar 11, 2026
migrate code from googleapis/nodejs-pubsub #7592
Merged
migrate code from googleapis/nodejs-promisify #7595
Closed
GautamSharda pushed a commit that referenced this pull request Mar 12, 2026
@release-please Benjamin E. Coe
chore: release 1.0.3 (#147)
4d49b24
@GautamSharda GautamSharda mentioned this pull request Mar 12, 2026
migrate code from googleapis/nodejs-promisify #7596
Merged
4 tasks
GautamSharda pushed a commit that referenced this pull request Mar 12, 2026
@release-please Benjamin E. Coe
chore: release 1.0.3 (#147)
22137c8
GautamSharda pushed a commit that referenced this pull request Mar 12, 2026
@alexander-fenster @stephenplusplus
chore: the ultimate fix for repo-tools EPERM (#147)
c0dfd88
* chore: the ultimate fix for repo-tools EPERM

* fix yaml references
@GautamSharda GautamSharda mentioned this pull request Mar 12, 2026
migrate code from googleapis/nodejs-common #7597
Merged
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@stephenplusplus @ryanseys @rakyll
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.