Add "files" to all package.json's (#5852)

Closes #5865

I noticed we are publishing all files, we should filter them. npm
automatically adds package.json, license, and readme so you can leave
them out of the files array.
This commit is contained in:
Merlijn Vos 2025-08-01 17:20:42 +02:00 committed by GitHub
parent c66fd85340
commit 1b1a9e3591
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
47 changed files with 320 additions and 1 deletions

View file

@ -0,0 +1,50 @@
---
"@uppy/angular": patch
"@uppy/google-photos-picker": patch
"@uppy/google-drive-picker": patch
"@uppy/thumbnail-generator": patch
"@uppy/aws-s3-multipart": patch
"@uppy/companion-client": patch
"@uppy/golden-retriever": patch
"@uppy/redux-dev-tools": patch
"@uppy/provider-views": patch
"@uppy/remote-sources": patch
"@uppy/screen-capture": patch
"@uppy/store-default": patch
"@uppy/google-drive": patch
"@uppy/image-editor": patch
"@uppy/progress-bar": patch
"@uppy/react-native": patch
"@uppy/drop-target": patch
"@uppy/store-redux": patch
"@uppy/transloadit": patch
"@uppy/components": patch
"@uppy/compressor": patch
"@uppy/file-input": patch
"@uppy/status-bar": patch
"@uppy/xhr-upload": patch
"@uppy/dashboard": patch
"@uppy/drag-drop": patch
"@uppy/instagram": patch
"@uppy/facebook": patch
"@uppy/informer": patch
"@uppy/onedrive": patch
"@uppy/unsplash": patch
"@uppy/dropbox": patch
"@uppy/locales": patch
"@uppy/aws-s3": patch
"@uppy/webcam": patch
"@uppy/webdav": patch
"@uppy/audio": patch
"@uppy/react": patch
"@uppy/utils": patch
"@uppy/core": patch
"@uppy/form": patch
"@uppy/zoom": patch
"@uppy/box": patch
"@uppy/tus": patch
"@uppy/url": patch
"@uppy/vue": patch
---
Define "files" in package.json

View file

@ -18,6 +18,9 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"dist"
],
"scripts": {
"prepublishOnly": "rm -fr * && cp -r ../../../dist/uppy/angular .."
},

View file

@ -24,6 +24,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/utils": "workspace:^",
"preact": "^10.5.13"

View file

@ -22,6 +22,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/aws-s3": "workspace:^"
},

View file

@ -27,6 +27,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/companion-client": "workspace:^",
"@uppy/utils": "workspace:^"

View file

@ -23,6 +23,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/companion-client": "workspace:^",
"@uppy/provider-views": "workspace:^",

View file

@ -25,6 +25,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/utils": "workspace:^",
"namespace-emitter": "^2.0.1",

View file

@ -20,6 +20,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"scripts": {
"build": "tsc --build tsconfig.build.json",
"build:css": "tailwindcss -m -i ./src/input.css -o ./dist/styles.css",

View file

@ -21,6 +21,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@transloadit/prettier-bytes": "^0.3.4",
"@uppy/utils": "workspace:^",

View file

@ -28,6 +28,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@transloadit/prettier-bytes": "^0.3.4",
"@uppy/store-default": "workspace:^",

View file

@ -28,6 +28,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@transloadit/prettier-bytes": "^0.3.4",
"@uppy/informer": "workspace:^",

View file

@ -29,6 +29,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/utils": "workspace:^",
"preact": "^10.5.13"

View file

@ -28,6 +28,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/utils": "workspace:^"
},

View file

@ -23,6 +23,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/companion-client": "workspace:^",
"@uppy/provider-views": "workspace:^",

View file

@ -23,6 +23,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/companion-client": "workspace:^",
"@uppy/provider-views": "workspace:^",

View file

@ -26,6 +26,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/utils": "workspace:^",
"preact": "^10.5.13"

View file

@ -23,6 +23,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/utils": "workspace:^",
"get-form-data": "^3.0.0"

View file

@ -26,6 +26,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/utils": "workspace:^",
"lodash": "^4.17.21"

View file

@ -25,6 +25,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/companion-client": "workspace:^",
"@uppy/provider-views": "workspace:^",

View file

@ -24,6 +24,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/companion-client": "workspace:^",
"@uppy/provider-views": "workspace:^",

View file

@ -25,6 +25,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/companion-client": "workspace:^",
"@uppy/provider-views": "workspace:^",

View file

@ -30,6 +30,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/utils": "workspace:^",
"cropperjs": "^1.6.2",

View file

@ -27,6 +27,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/utils": "workspace:^",
"preact": "^10.5.13"

View file

@ -26,6 +26,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/companion-client": "workspace:^",
"@uppy/provider-views": "workspace:^",

View file

@ -24,6 +24,10 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"lib",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/utils": "workspace:^"
},

View file

@ -23,6 +23,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/companion-client": "workspace:^",
"@uppy/provider-views": "workspace:^",

View file

@ -27,6 +27,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/utils": "workspace:^",
"preact": "^10.5.13"

View file

@ -24,6 +24,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/utils": "workspace:^",
"classnames": "^2.2.6",

View file

@ -20,6 +20,10 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"file-picker",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/core": "workspace:*",
"@uppy/instagram": "workspace:^",

View file

@ -26,6 +26,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/components": "workspace:^",
"@uppy/utils": "workspace:^",

View file

@ -20,6 +20,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"peerDependencies": {
"@uppy/core": "workspace:^"
},

View file

@ -30,6 +30,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/box": "workspace:^",
"@uppy/dashboard": "workspace:^",

View file

@ -28,6 +28,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/utils": "workspace:^",
"preact": "^10.5.13"

View file

@ -30,6 +30,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@transloadit/prettier-bytes": "^0.3.4",
"@uppy/utils": "workspace:^",

View file

@ -27,5 +27,11 @@
"repository": {
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
}
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
]
}

View file

@ -19,6 +19,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"nanoid": "^5.0.9"
},

View file

@ -26,6 +26,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/utils": "workspace:^",
"exifr": "^7.0.0"

View file

@ -31,6 +31,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/companion-client": "workspace:^",
"@uppy/provider-views": "workspace:^",

View file

@ -26,6 +26,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/companion-client": "workspace:^",
"@uppy/utils": "workspace:^",

View file

@ -23,6 +23,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/companion-client": "workspace:^",
"@uppy/provider-views": "workspace:^",

View file

@ -28,6 +28,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/companion-client": "workspace:^",
"@uppy/utils": "workspace:^",

View file

@ -21,6 +21,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"exports": {
"./package.json": "./package.json",
"./lib/Translator": "./lib/Translator.js",

View file

@ -9,6 +9,12 @@
"build:css": "mkdir -p dist && cp ../components/dist/styles.css dist/styles.css",
"typecheck": "tsc --build"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/components": "workspace:^",
"preact": "^10.5.13",

View file

@ -31,6 +31,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/utils": "workspace:^",
"is-mobile": "^4.0.0",

View file

@ -27,6 +27,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/companion-client": "workspace:^",
"@uppy/provider-views": "workspace:^",

View file

@ -28,6 +28,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/companion-client": "workspace:^",
"@uppy/utils": "workspace:^"

View file

@ -23,6 +23,12 @@
"type": "git",
"url": "git+https://github.com/transloadit/uppy.git"
},
"files": [
"src",
"lib",
"dist",
"CHANGELOG.md"
],
"dependencies": {
"@uppy/companion-client": "workspace:^",
"@uppy/provider-views": "workspace:^",