mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-30 13:30:31 +00:00
**Fixes**
- `@uppy/components` incorrectly had a lot of packages in `dependencies`
while they should be `peerDependencies`. Also removed `remote-sources`
completely as this drags in a lot of plugins and we don't even need it
there.
- `@uppy/{react,vue,svelte}` now has to have the same `peerDependencies`
as `components` as the requirement has been moved up. We also mark them
as optional, they are only needed if you use a hook such as `useWebcam`
needing `@uppy/webcam`.
- Remove `companion-client` and `provider-views` from `transloadit`.
Those are never used by the package.
- Remove `@uppy/utils` from `@uppy/angular` and `@uppy/react`, we can
just use imports from `core`
- Place `@uppy/status-bar` back in peer deps. This is critical but
forgotten when status bar was put back inside frameworks.
**Implications**
- Moving peer deps to deps in `@uppy/components` now requires people to
install these dependencies. However, they kind of had to anyway before
as we require people to install the plugin on uppy (`.use(Webcam')`) if
you want to use `useWebcam` and if you try to import a dep you did not
install they would have gotten an error already.
- Note: this is not the same situation as with importing dashboard
component from @uppy/react which causes a runtime crash because
@uppy/dashboard is missing. In this case we only depend on _types_, so
we don't have this problem.
23 lines
450 B
JSON
23 lines
450 B
JSON
{
|
|
"extends": ["//"],
|
|
"tasks": {
|
|
"build": {
|
|
"dependsOn": [
|
|
"^build",
|
|
"@uppy/core#build",
|
|
"@uppy/image-editor#build",
|
|
"@uppy/screen-capture#build",
|
|
"@uppy/webcam#build"
|
|
],
|
|
"outputs": ["lib/**"]
|
|
},
|
|
"build:css": {
|
|
"inputs": [
|
|
"src/input.css",
|
|
"src/**/*.{js,ts,jsx,tsx}",
|
|
"tailwind.config.js"
|
|
],
|
|
"outputs": ["dist/styles.css"]
|
|
}
|
|
}
|
|
}
|