Browse Source

export plugin options (#5433)

Antoine du Hamel 8 months ago
parent
commit
64bffd5363

+ 7 - 7
.github/workflows/bundlers.yml

@@ -105,7 +105,7 @@ jobs:
           } from "@rollup/plugin-node-resolve";
 
           export default {
-            input: "./index.mjs",
+            input: "./lib/index.js",
             output: {
               file: "/dev/null",
             },
@@ -137,9 +137,9 @@ jobs:
       - run: npx webpack --version
       - name: Create Webpack config file
         run:
-          echo
-          'module.exports={mode:"production",target:"web",entry:"./index.mjs"}'
-          > webpack.config.js
+          echo 'export default
+          {mode:"production",target:"web",entry:"./lib/index.js"}' >
+          webpack.config.js
       - name: Bundle
         run: npx webpack
 
@@ -171,7 +171,7 @@ jobs:
         run: npm i --save-dev parcel@${{matrix.bundler-version}}
       - run: npx parcel --version
       - name: Bundle
-        run: npx parcel build index.mjs
+        run: npx parcel build lib/index.js
 
   vite:
     needs: isolate_uppy
@@ -194,7 +194,7 @@ jobs:
       - name: Create index.html
         run:
           echo '<!doctype html><html><head><script type="module"
-          src="./index.mjs"></script></head></html>' > index.html
+          src="./lib/index.js"></script></head></html>' > index.html
       - name: Bundle
         run: npx vite build
 
@@ -217,6 +217,6 @@ jobs:
         run: npm i --save-dev esbuild@${{matrix.bundler-version}}
       - run: npx esbuild --version
       - name: Bundle
-        run: npx esbuild index.mjs --bundle --outfile=/dev/null
+        run: npx esbuild lib/index.js --bundle --outfile=/dev/null
 
   # Browserify: doesn't support ESM.

+ 1 - 1
bin/build-bundle.mjs

@@ -34,7 +34,7 @@ await fs.mkdir(new URL('./uppy/dist', PACKAGES_ROOT), { recursive: true })
 
 const methods = [
   buildBundle(
-    './packages/uppy/index.mjs',
+    './packages/uppy/src/bundle.ts',
     './packages/uppy/dist/uppy.min.mjs',
     { standalone: 'Uppy (ESM)', format: 'esm' },
   ),

+ 2 - 0
packages/@uppy/aws-s3/src/index.ts

@@ -277,6 +277,8 @@ export type AwsS3MultipartOptions<
     | AWSS3MaybeMultipartWithoutCompanion<M, B>
   )
 
+export type { AwsS3MultipartOptions as AwsS3Options }
+
 const defaultOptions = {
   allowedMetaFields: true,
   limit: 6,

+ 1 - 0
packages/@uppy/box/src/index.ts

@@ -1 +1,2 @@
 export { default } from './Box.tsx'
+export type { BoxOptions } from './Box.tsx'

+ 2 - 0
packages/@uppy/compressor/src/index.ts

@@ -21,6 +21,8 @@ export interface CompressorOpts extends PluginOpts, CompressorJS.Options {
   limit?: number
 }
 
+export type { CompressorOpts as CompressorOptions }
+
 const defaultOptions = {
   quality: 0.6,
   limit: 10,

+ 1 - 0
packages/@uppy/dropbox/src/index.ts

@@ -1 +1,2 @@
 export { default } from './Dropbox.tsx'
+export type { DropboxOptions } from './Dropbox.tsx'

+ 1 - 0
packages/@uppy/facebook/src/index.ts

@@ -1 +1,2 @@
 export { default } from './Facebook.tsx'
+export type { FacebookOptions } from './Facebook.tsx'

+ 1 - 0
packages/@uppy/google-drive/src/index.ts

@@ -1 +1,2 @@
 export { default } from './GoogleDrive.tsx'
+export type { GoogleDriveOptions } from './GoogleDrive.tsx'

+ 1 - 0
packages/@uppy/google-photos/src/index.ts

@@ -1 +1,2 @@
 export { default } from './GooglePhotos.tsx'
+export type { GooglePhotosOptions } from './GooglePhotos.tsx'

+ 1 - 1
packages/@uppy/image-editor/src/ImageEditor.tsx

@@ -36,7 +36,7 @@ declare module '@uppy/core' {
   }
 }
 
-interface Opts extends UIPluginOptions {
+export interface Opts extends UIPluginOptions {
   quality?: number
   cropperOptions?: Cropper.Options & {
     croppedCanvasOptions?: Cropper.GetCroppedCanvasOptions

+ 1 - 0
packages/@uppy/image-editor/src/index.ts

@@ -1 +1,2 @@
 export { default } from './ImageEditor.tsx'
+export type { Opts as ImageEditorOptions } from './ImageEditor.tsx'

+ 1 - 0
packages/@uppy/informer/src/index.ts

@@ -1 +1,2 @@
 export { default } from './Informer.tsx'
+export type { InformerOptions } from './Informer.tsx'

+ 1 - 0
packages/@uppy/instagram/src/index.ts

@@ -1 +1,2 @@
 export { default } from './Instagram.tsx'
+export type { InstagramOptions } from './Instagram.tsx'

+ 1 - 0
packages/@uppy/onedrive/src/index.ts

@@ -1 +1,2 @@
 export { default } from './OneDrive.tsx'
+export type { OneDriveOptions } from './OneDrive.tsx'

+ 1 - 0
packages/@uppy/screen-capture/src/index.ts

@@ -1 +1,2 @@
 export { default } from './ScreenCapture.tsx'
+export type { ScreenCaptureOptions } from './ScreenCapture.tsx'

+ 1 - 0
packages/@uppy/tus/src/index.ts

@@ -60,6 +60,7 @@ export interface TusOpts<M extends Meta, B extends Body>
   allowedMetaFields?: boolean | string[]
   rateLimitedQueue?: RateLimitedQueue
 }
+export type { TusOpts as TusOptions }
 
 /**
  * Extracted from https://github.com/tus/tus-js-client/blob/master/lib/upload.js#L13

+ 1 - 0
packages/@uppy/unsplash/src/index.ts

@@ -1 +1,2 @@
 export { default } from './Unsplash.tsx'
+export type { UnsplashOptions } from './Unsplash.tsx'

+ 1 - 0
packages/@uppy/url/src/index.ts

@@ -1 +1,2 @@
 export { default } from './Url.tsx'
+export type { UrlOptions } from './Url.tsx'

+ 2 - 0
packages/@uppy/xhr-upload/src/index.ts

@@ -60,6 +60,8 @@ export interface XhrUploadOpts<M extends Meta, B extends Body>
   bundle?: boolean
 }
 
+export type { XhrUploadOpts as XHRUploadOptions }
+
 declare module '@uppy/utils/lib/UppyFile' {
   // eslint-disable-next-line no-shadow
   export interface UppyFile<M extends Meta, B extends Body> {

+ 1 - 0
packages/@uppy/zoom/src/index.ts

@@ -1 +1,2 @@
 export { default } from './Zoom.tsx'
+export type { ZoomOptions } from './Zoom.tsx'

+ 2 - 0
packages/uppy/.npmignore

@@ -1 +1,3 @@
 # This file need to be there so .gitignored files are still uploaded to the npm registry.
+
+tsconfig.*

+ 1 - 1
packages/uppy/bundle.mjs

@@ -2,6 +2,6 @@
 
 'use strict'
 
-import * as Uppy from './index.mjs'
+import * as Uppy from './src/index.ts'
 
 globalThis.Uppy = Uppy

+ 3 - 3
packages/uppy/package.json

@@ -3,8 +3,9 @@
   "description": "Extensible JavaScript file upload widget with support for drag&drop, resumable uploads, previews, restrictions, file processing/encoding, remote providers like Instagram, Dropbox, Google Drive, S3 and more :dog:",
   "version": "4.2.1",
   "license": "MIT",
-  "main": "index.mjs",
-  "module": "index.mjs",
+  "main": "lib/index.js",
+  "module": "lib/index.js",
+  "type": "module",
   "unpkg": "dist/uppy.min.js",
   "style": "dist/uppy.min.css",
   "keywords": [
@@ -32,7 +33,6 @@
   "dependencies": {
     "@uppy/audio": "workspace:^",
     "@uppy/aws-s3": "workspace:^",
-    "@uppy/aws-s3-multipart": "workspace:^",
     "@uppy/box": "workspace:^",
     "@uppy/companion-client": "workspace:^",
     "@uppy/compressor": "workspace:^",

+ 12 - 3
packages/uppy/index.mjs → packages/uppy/src/bundle.ts

@@ -1,3 +1,4 @@
+/* eslint-disable import/first */
 // Core
 export { default as Uppy, debugLogger } from '@uppy/core'
 
@@ -8,7 +9,7 @@ export { default as BasePlugin } from '@uppy/core/lib/BasePlugin.js'
 /**
  * @deprecated Use `Uppy` instead of `Core`
  */
-export function Core () {
+export function Core() {
   throw new Error('Core has been renamed to Uppy')
 }
 
@@ -16,10 +17,12 @@ export function Core () {
 export * as server from '@uppy/companion-client'
 
 import * as ProviderView from '@uppy/provider-views'
+
 export const views = { ProviderView }
 
 // Stores
 export { default as DefaultStore } from '@uppy/store-default'
+// @ts-expect-error untyped
 export { default as ReduxStore } from '@uppy/store-redux'
 
 // UI plugins
@@ -50,7 +53,6 @@ export { default as Zoom } from '@uppy/zoom'
 
 // Uploaders
 export { default as AwsS3 } from '@uppy/aws-s3'
-export { default as AwsS3Multipart } from '@uppy/aws-s3-multipart'
 export { default as Transloadit } from '@uppy/transloadit'
 export { default as Tus } from '@uppy/tus'
 export { default as XHRUpload } from '@uppy/xhr-upload'
@@ -59,12 +61,19 @@ export { default as XHRUpload } from '@uppy/xhr-upload'
 export { default as Compressor } from '@uppy/compressor'
 export { default as Form } from '@uppy/form'
 export { default as GoldenRetriever } from '@uppy/golden-retriever'
+// @ts-expect-error untyped
 export { default as ReduxDevTools } from '@uppy/redux-dev-tools'
 export { default as ThumbnailGenerator } from '@uppy/thumbnail-generator'
 
 // Special hack for Transloadit static exports
-import Transloadit, { COMPANION_URL, COMPANION_ALLOWED_HOSTS } from '@uppy/transloadit'
+import Transloadit, {
+  COMPANION_URL,
+  COMPANION_ALLOWED_HOSTS,
+} from '@uppy/transloadit'
+
+// @ts-expect-error monkey patching
 Transloadit.COMPANION_URL = COMPANION_URL
+// @ts-expect-error monkey patching
 Transloadit.COMPANION_ALLOWED_HOSTS = COMPANION_ALLOWED_HOSTS
 
 export const locales = {}

+ 42 - 0
packages/uppy/src/index.ts

@@ -0,0 +1,42 @@
+export * from './bundle.ts'
+
+// Core
+export type { UppyOptions, UIPluginOptions } from '@uppy/core'
+
+// UI plugins
+export type { DashboardOptions } from '@uppy/dashboard'
+export type { DragDropOptions } from '@uppy/drag-drop'
+export type { DropTargetOptions } from '@uppy/drop-target'
+export type { FileInputOptions } from '@uppy/file-input'
+export type { ImageEditorOptions } from '@uppy/image-editor'
+export type { InformerOptions } from '@uppy/informer'
+export type { ProgressBarOptions } from '@uppy/progress-bar'
+export type { StatusBarOptions } from '@uppy/status-bar'
+
+// Acquirers
+export type { AudioOptions } from '@uppy/audio'
+export type { BoxOptions } from '@uppy/box'
+export type { DropboxOptions } from '@uppy/dropbox'
+export type { FacebookOptions } from '@uppy/facebook'
+export type { GoogleDriveOptions } from '@uppy/google-drive'
+export type { GooglePhotosOptions } from '@uppy/google-photos'
+export type { InstagramOptions } from '@uppy/instagram'
+export type { OneDriveOptions } from '@uppy/onedrive'
+export type { RemoteSourcesOptions } from '@uppy/remote-sources'
+export type { ScreenCaptureOptions } from '@uppy/screen-capture'
+export type { UnsplashOptions } from '@uppy/unsplash'
+export type { UrlOptions } from '@uppy/url'
+export type { WebcamOptions } from '@uppy/webcam'
+export type { ZoomOptions } from '@uppy/zoom'
+
+// Uploaders
+export type { AwsS3Options } from '@uppy/aws-s3'
+export type { TransloaditOptions } from '@uppy/transloadit'
+export type { TusOptions } from '@uppy/tus'
+export type { XHRUploadOptions } from '@uppy/xhr-upload'
+
+// Miscellaneous
+export type { CompressorOptions } from '@uppy/compressor'
+export type { FormOptions } from '@uppy/form'
+export type { GoldenRetrieverOptions } from '@uppy/golden-retriever'
+export type { ThumbnailGeneratorOptions } from '@uppy/thumbnail-generator'

+ 186 - 0
packages/uppy/tsconfig.build.json

@@ -0,0 +1,186 @@
+{
+  "extends": "../../tsconfig.shared",
+  "compilerOptions": {
+    "noImplicitAny": false,
+    "outDir": "./lib",
+    "paths": {
+      "@uppy/audio": ["../audio/src/index.js"],
+      "@uppy/audio/lib/*": ["../audio/src/*"],
+      "@uppy/aws-s3": ["../aws-s3/src/index.js"],
+      "@uppy/aws-s3/lib/*": ["../aws-s3/src/*"],
+      "@uppy/box": ["../box/src/index.js"],
+      "@uppy/box/lib/*": ["../box/src/*"],
+      "@uppy/companion-client": ["../companion-client/src/index.js"],
+      "@uppy/companion-client/lib/*": ["../companion-client/src/*"],
+      "@uppy/compressor": ["../compressor/src/index.js"],
+      "@uppy/compressor/lib/*": ["../compressor/src/*"],
+      "@uppy/core": ["../core/src/index.js"],
+      "@uppy/core/lib/*": ["../core/src/*"],
+      "@uppy/dashboard": ["../dashboard/src/index.js"],
+      "@uppy/dashboard/lib/*": ["../dashboard/src/*"],
+      "@uppy/drag-drop": ["../drag-drop/src/index.js"],
+      "@uppy/drag-drop/lib/*": ["../drag-drop/src/*"],
+      "@uppy/drop-target": ["../drop-target/src/index.js"],
+      "@uppy/drop-target/lib/*": ["../drop-target/src/*"],
+      "@uppy/dropbox": ["../dropbox/src/index.js"],
+      "@uppy/dropbox/lib/*": ["../dropbox/src/*"],
+      "@uppy/facebook": ["../facebook/src/index.js"],
+      "@uppy/facebook/lib/*": ["../facebook/src/*"],
+      "@uppy/file-input": ["../file-input/src/index.js"],
+      "@uppy/file-input/lib/*": ["../file-input/src/*"],
+      "@uppy/form": ["../form/src/index.js"],
+      "@uppy/form/lib/*": ["../form/src/*"],
+      "@uppy/golden-retriever": ["../golden-retriever/src/index.js"],
+      "@uppy/golden-retriever/lib/*": ["../golden-retriever/src/*"],
+      "@uppy/google-drive": ["../google-drive/src/index.js"],
+      "@uppy/google-drive/lib/*": ["../google-drive/src/*"],
+      "@uppy/google-photos": ["../google-photos/src/index.js"],
+      "@uppy/google-photos/lib/*": ["../google-photos/src/*"],
+      "@uppy/image-editor": ["../image-editor/src/index.js"],
+      "@uppy/image-editor/lib/*": ["../image-editor/src/*"],
+      "@uppy/informer": ["../informer/src/index.js"],
+      "@uppy/informer/lib/*": ["../informer/src/*"],
+      "@uppy/instagram": ["../instagram/src/index.js"],
+      "@uppy/instagram/lib/*": ["../instagram/src/*"],
+      "@uppy/onedrive": ["../onedrive/src/index.js"],
+      "@uppy/onedrive/lib/*": ["../onedrive/src/*"],
+      "@uppy/progress-bar": ["../progress-bar/src/index.js"],
+      "@uppy/progress-bar/lib/*": ["../progress-bar/src/*"],
+      "@uppy/provider-views": ["../provider-views/src/index.js"],
+      "@uppy/provider-views/lib/*": ["../provider-views/src/*"],
+      "@uppy/remote-sources": ["../remote-sources/src/index.js"],
+      "@uppy/remote-sources/lib/*": ["../remote-sources/src/*"],
+      "@uppy/screen-capture": ["../screen-capture/src/index.js"],
+      "@uppy/screen-capture/lib/*": ["../screen-capture/src/*"],
+      "@uppy/status-bar": ["../status-bar/src/index.js"],
+      "@uppy/status-bar/lib/*": ["../status-bar/src/*"],
+      "@uppy/store-default": ["../store-default/src/index.js"],
+      "@uppy/store-default/lib/*": ["../store-default/src/*"],
+      "@uppy/thumbnail-generator": ["../thumbnail-generator/src/index.js"],
+      "@uppy/thumbnail-generator/lib/*": ["../thumbnail-generator/src/*"],
+      "@uppy/transloadit": ["../transloadit/src/index.js"],
+      "@uppy/transloadit/lib/*": ["../transloadit/src/*"],
+      "@uppy/tus": ["../tus/src/index.js"],
+      "@uppy/tus/lib/*": ["../tus/src/*"],
+      "@uppy/unsplash": ["../unsplash/src/index.js"],
+      "@uppy/unsplash/lib/*": ["../unsplash/src/*"],
+      "@uppy/url": ["../url/src/index.js"],
+      "@uppy/url/lib/*": ["../url/src/*"],
+      "@uppy/webcam": ["../webcam/src/index.js"],
+      "@uppy/webcam/lib/*": ["../webcam/src/*"],
+      "@uppy/xhr-upload": ["../xhr-upload/src/index.js"],
+      "@uppy/xhr-upload/lib/*": ["../xhr-upload/src/*"],
+      "@uppy/zoom": ["../zoom/src/index.js"],
+      "@uppy/zoom/lib/*": ["../zoom/src/*"]
+    },
+    "resolveJsonModule": false,
+    "rootDir": "./src",
+    "skipLibCheck": true
+  },
+  "include": ["./src/**/*.*"],
+  "exclude": ["./src/**/*.test.ts"],
+  "references": [
+    {
+      "path": "../@uppy/audio/tsconfig.build.json"
+    },
+    {
+      "path": "../@uppy/aws-s3/tsconfig.build.json"
+    },
+    {
+      "path": "../@uppy/box/tsconfig.build.json"
+    },
+    {
+      "path": "../@uppy/companion-client/tsconfig.build.json"
+    },
+    {
+      "path": "../@uppy/compressor/tsconfig.build.json"
+    },
+    {
+      "path": "../@uppy/core/tsconfig.build.json"
+    },
+    {
+      "path": "../@uppy/dashboard/tsconfig.build.json"
+    },
+    {
+      "path": "../@uppy/drag-drop/tsconfig.build.json"
+    },
+    {
+      "path": "../@uppy/drop-target/tsconfig.build.json"
+    },
+    {
+      "path": "../@uppy/dropbox/tsconfig.build.json"
+    },
+    {
+      "path": "../@uppy/facebook/tsconfig.build.json"
+    },
+    {
+      "path": "../@uppy/file-input/tsconfig.build.json"
+    },
+    {
+      "path": "../@uppy/form/tsconfig.build.json"
+    },
+    {
+      "path": "../@uppy/golden-retriever/tsconfig.build.json"
+    },
+    {
+      "path": "../@uppy/google-drive/tsconfig.build.json"
+    },
+    {
+      "path": "../@uppy/google-photos/tsconfig.build.json"
+    },
+    {
+      "path": "../@uppy/image-editor/tsconfig.build.json"
+    },
+    {
+      "path": "../@uppy/informer/tsconfig.build.json"
+    },
+    {
+      "path": "../@uppy/instagram/tsconfig.build.json"
+    },
+    {
+      "path": "../@uppy/onedrive/tsconfig.build.json"
+    },
+    {
+      "path": "../@uppy/progress-bar/tsconfig.build.json"
+    },
+    {
+      "path": "../@uppy/provider-views/tsconfig.build.json"
+    },
+    {
+      "path": "../@uppy/remote-sources/tsconfig.build.json"
+    },
+    {
+      "path": "../@uppy/screen-capture/tsconfig.build.json"
+    },
+    {
+      "path": "../@uppy/status-bar/tsconfig.build.json"
+    },
+    {
+      "path": "../@uppy/store-default/tsconfig.build.json"
+    },
+    {
+      "path": "../@uppy/thumbnail-generator/tsconfig.build.json"
+    },
+    {
+      "path": "../@uppy/transloadit/tsconfig.build.json"
+    },
+    {
+      "path": "../@uppy/tus/tsconfig.build.json"
+    },
+    {
+      "path": "../@uppy/unsplash/tsconfig.build.json"
+    },
+    {
+      "path": "../@uppy/url/tsconfig.build.json"
+    },
+    {
+      "path": "../@uppy/webcam/tsconfig.build.json"
+    },
+    {
+      "path": "../@uppy/xhr-upload/tsconfig.build.json"
+    },
+    {
+      "path": "../@uppy/zoom/tsconfig.build.json"
+    }
+  ]
+}

+ 182 - 0
packages/uppy/tsconfig.json

@@ -0,0 +1,182 @@
+{
+  "extends": "../../../tsconfig.shared",
+  "compilerOptions": {
+    "emitDeclarationOnly": false,
+    "noEmit": true,
+    "paths": {
+      "@uppy/audio": ["../audio/src/index.js"],
+      "@uppy/audio/lib/*": ["../audio/src/*"],
+      "@uppy/aws-s3": ["../aws-s3/src/index.js"],
+      "@uppy/aws-s3/lib/*": ["../aws-s3/src/*"],
+      "@uppy/box": ["../box/src/index.js"],
+      "@uppy/box/lib/*": ["../box/src/*"],
+      "@uppy/companion-client": ["../companion-client/src/index.js"],
+      "@uppy/companion-client/lib/*": ["../companion-client/src/*"],
+      "@uppy/compressor": ["../compressor/src/index.js"],
+      "@uppy/compressor/lib/*": ["../compressor/src/*"],
+      "@uppy/core": ["../core/src/index.js"],
+      "@uppy/core/lib/*": ["../core/src/*"],
+      "@uppy/dashboard": ["../dashboard/src/index.js"],
+      "@uppy/dashboard/lib/*": ["../dashboard/src/*"],
+      "@uppy/drag-drop": ["../drag-drop/src/index.js"],
+      "@uppy/drag-drop/lib/*": ["../drag-drop/src/*"],
+      "@uppy/drop-target": ["../drop-target/src/index.js"],
+      "@uppy/drop-target/lib/*": ["../drop-target/src/*"],
+      "@uppy/dropbox": ["../dropbox/src/index.js"],
+      "@uppy/dropbox/lib/*": ["../dropbox/src/*"],
+      "@uppy/facebook": ["../facebook/src/index.js"],
+      "@uppy/facebook/lib/*": ["../facebook/src/*"],
+      "@uppy/file-input": ["../file-input/src/index.js"],
+      "@uppy/file-input/lib/*": ["../file-input/src/*"],
+      "@uppy/form": ["../form/src/index.js"],
+      "@uppy/form/lib/*": ["../form/src/*"],
+      "@uppy/golden-retriever": ["../golden-retriever/src/index.js"],
+      "@uppy/golden-retriever/lib/*": ["../golden-retriever/src/*"],
+      "@uppy/google-drive": ["../google-drive/src/index.js"],
+      "@uppy/google-drive/lib/*": ["../google-drive/src/*"],
+      "@uppy/google-photos": ["../google-photos/src/index.js"],
+      "@uppy/google-photos/lib/*": ["../google-photos/src/*"],
+      "@uppy/image-editor": ["../image-editor/src/index.js"],
+      "@uppy/image-editor/lib/*": ["../image-editor/src/*"],
+      "@uppy/informer": ["../informer/src/index.js"],
+      "@uppy/informer/lib/*": ["../informer/src/*"],
+      "@uppy/instagram": ["../instagram/src/index.js"],
+      "@uppy/instagram/lib/*": ["../instagram/src/*"],
+      "@uppy/onedrive": ["../onedrive/src/index.js"],
+      "@uppy/onedrive/lib/*": ["../onedrive/src/*"],
+      "@uppy/progress-bar": ["../progress-bar/src/index.js"],
+      "@uppy/progress-bar/lib/*": ["../progress-bar/src/*"],
+      "@uppy/provider-views": ["../provider-views/src/index.js"],
+      "@uppy/provider-views/lib/*": ["../provider-views/src/*"],
+      "@uppy/remote-sources": ["../remote-sources/src/index.js"],
+      "@uppy/remote-sources/lib/*": ["../remote-sources/src/*"],
+      "@uppy/screen-capture": ["../screen-capture/src/index.js"],
+      "@uppy/screen-capture/lib/*": ["../screen-capture/src/*"],
+      "@uppy/status-bar": ["../status-bar/src/index.js"],
+      "@uppy/status-bar/lib/*": ["../status-bar/src/*"],
+      "@uppy/store-default": ["../store-default/src/index.js"],
+      "@uppy/store-default/lib/*": ["../store-default/src/*"],
+      "@uppy/thumbnail-generator": ["../thumbnail-generator/src/index.js"],
+      "@uppy/thumbnail-generator/lib/*": ["../thumbnail-generator/src/*"],
+      "@uppy/transloadit": ["../transloadit/src/index.js"],
+      "@uppy/transloadit/lib/*": ["../transloadit/src/*"],
+      "@uppy/tus": ["../tus/src/index.js"],
+      "@uppy/tus/lib/*": ["../tus/src/*"],
+      "@uppy/unsplash": ["../unsplash/src/index.js"],
+      "@uppy/unsplash/lib/*": ["../unsplash/src/*"],
+      "@uppy/url": ["../url/src/index.js"],
+      "@uppy/url/lib/*": ["../url/src/*"],
+      "@uppy/webcam": ["../webcam/src/index.js"],
+      "@uppy/webcam/lib/*": ["../webcam/src/*"],
+      "@uppy/xhr-upload": ["../xhr-upload/src/index.js"],
+      "@uppy/xhr-upload/lib/*": ["../xhr-upload/src/*"],
+      "@uppy/zoom": ["../zoom/src/index.js"],
+      "@uppy/zoom/lib/*": ["../zoom/src/*"],
+    },
+  },
+  "include": ["./package.json", "./src/**/*.*"],
+  "references": [
+    {
+      "path": "../@uppy/audio/tsconfig.build.json",
+    },
+    {
+      "path": "../@uppy/aws-s3/tsconfig.build.json",
+    },
+    {
+      "path": "../@uppy/box/tsconfig.build.json",
+    },
+    {
+      "path": "../@uppy/companion-client/tsconfig.build.json",
+    },
+    {
+      "path": "../@uppy/compressor/tsconfig.build.json",
+    },
+    {
+      "path": "../@uppy/core/tsconfig.build.json",
+    },
+    {
+      "path": "../@uppy/dashboard/tsconfig.build.json",
+    },
+    {
+      "path": "../@uppy/drag-drop/tsconfig.build.json",
+    },
+    {
+      "path": "../@uppy/drop-target/tsconfig.build.json",
+    },
+    {
+      "path": "../@uppy/dropbox/tsconfig.build.json",
+    },
+    {
+      "path": "../@uppy/facebook/tsconfig.build.json",
+    },
+    {
+      "path": "../@uppy/file-input/tsconfig.build.json",
+    },
+    {
+      "path": "../@uppy/form/tsconfig.build.json",
+    },
+    {
+      "path": "../@uppy/golden-retriever/tsconfig.build.json",
+    },
+    {
+      "path": "../@uppy/google-drive/tsconfig.build.json",
+    },
+    {
+      "path": "../@uppy/google-photos/tsconfig.build.json",
+    },
+    {
+      "path": "../@uppy/image-editor/tsconfig.build.json",
+    },
+    {
+      "path": "../@uppy/informer/tsconfig.build.json",
+    },
+    {
+      "path": "../@uppy/instagram/tsconfig.build.json",
+    },
+    {
+      "path": "../@uppy/onedrive/tsconfig.build.json",
+    },
+    {
+      "path": "../@uppy/progress-bar/tsconfig.build.json",
+    },
+    {
+      "path": "../@uppy/provider-views/tsconfig.build.json",
+    },
+    {
+      "path": "../@uppy/remote-sources/tsconfig.build.json",
+    },
+    {
+      "path": "../@uppy/screen-capture/tsconfig.build.json",
+    },
+    {
+      "path": "../@uppy/status-bar/tsconfig.build.json",
+    },
+    {
+      "path": "../@uppy/store-default/tsconfig.build.json",
+    },
+    {
+      "path": "../@uppy/thumbnail-generator/tsconfig.build.json",
+    },
+    {
+      "path": "../@uppy/transloadit/tsconfig.build.json",
+    },
+    {
+      "path": "../@uppy/tus/tsconfig.build.json",
+    },
+    {
+      "path": "../@uppy/unsplash/tsconfig.build.json",
+    },
+    {
+      "path": "../@uppy/url/tsconfig.build.json",
+    },
+    {
+      "path": "../@uppy/webcam/tsconfig.build.json",
+    },
+    {
+      "path": "../@uppy/xhr-upload/tsconfig.build.json",
+    },
+    {
+      "path": "../@uppy/zoom/tsconfig.build.json",
+    },
+  ],
+}

+ 3 - 0
tsconfig.json

@@ -115,5 +115,8 @@
     {
       "path": "./packages/@uppy/zoom/tsconfig.build.json",
     },
+    {
+      "path": "./packages/uppy/tsconfig.build.json",
+    },
   ],
 }