Browse Source

meta: enforce use of extension in import type declarations (#5316)

Antoine du Hamel 9 months ago
parent
commit
489ca6de55
46 changed files with 57 additions and 54 deletions
  1. 4 1
      .eslintrc.js
  2. 1 1
      packages/@uppy/audio/src/Audio.tsx
  3. 1 1
      packages/@uppy/box/src/Box.tsx
  4. 2 2
      packages/@uppy/companion-client/src/Provider.ts
  5. 1 1
      packages/@uppy/compressor/src/index.ts
  6. 1 1
      packages/@uppy/dashboard/src/Dashboard.tsx
  7. 2 2
      packages/@uppy/drag-drop/src/DragDrop.tsx
  8. 1 1
      packages/@uppy/drop-target/src/index.ts
  9. 1 1
      packages/@uppy/dropbox/src/Dropbox.tsx
  10. 1 1
      packages/@uppy/facebook/src/Facebook.tsx
  11. 1 1
      packages/@uppy/golden-retriever/src/index.ts
  12. 1 1
      packages/@uppy/google-drive/src/DriveProviderViews.ts
  13. 1 1
      packages/@uppy/google-drive/src/GoogleDrive.tsx
  14. 1 1
      packages/@uppy/google-photos/src/GooglePhotos.tsx
  15. 1 1
      packages/@uppy/instagram/src/Instagram.tsx
  16. 1 1
      packages/@uppy/onedrive/src/OneDrive.tsx
  17. 1 1
      packages/@uppy/progress-bar/src/ProgressBar.tsx
  18. 1 1
      packages/@uppy/provider-views/src/Breadcrumbs.tsx
  19. 1 1
      packages/@uppy/provider-views/src/Browser.tsx
  20. 1 1
      packages/@uppy/provider-views/src/FooterActions.tsx
  21. 1 1
      packages/@uppy/provider-views/src/Item/components/GridItem.tsx
  22. 1 1
      packages/@uppy/provider-views/src/Item/components/ListItem.tsx
  23. 1 1
      packages/@uppy/provider-views/src/Item/index.tsx
  24. 1 1
      packages/@uppy/provider-views/src/ProviderView/Header.tsx
  25. 3 3
      packages/@uppy/provider-views/src/ProviderView/ProviderView.tsx
  26. 2 2
      packages/@uppy/provider-views/src/SearchProviderView/SearchProviderView.tsx
  27. 1 1
      packages/@uppy/provider-views/src/utils/PartialTreeUtils/afterFill.ts
  28. 1 1
      packages/@uppy/provider-views/src/utils/PartialTreeUtils/afterOpenFolder.ts
  29. 1 1
      packages/@uppy/provider-views/src/utils/PartialTreeUtils/afterScrollFolder.ts
  30. 1 1
      packages/@uppy/provider-views/src/utils/PartialTreeUtils/afterToggleCheckbox.ts
  31. 1 1
      packages/@uppy/provider-views/src/utils/PartialTreeUtils/getBreadcrumbs.ts
  32. 1 1
      packages/@uppy/provider-views/src/utils/PartialTreeUtils/getCheckedFilesWithPaths.ts
  33. 1 1
      packages/@uppy/provider-views/src/utils/PartialTreeUtils/getNumberOfSelectedFiles.ts
  34. 1 1
      packages/@uppy/provider-views/src/utils/PartialTreeUtils/index.test.ts
  35. 1 1
      packages/@uppy/provider-views/src/utils/PartialTreeUtils/shallowClone.ts
  36. 1 1
      packages/@uppy/provider-views/src/utils/getClickedRange.ts
  37. 1 1
      packages/@uppy/remote-sources/src/index.ts
  38. 1 1
      packages/@uppy/screen-capture/src/ScreenCapture.tsx
  39. 1 1
      packages/@uppy/status-bar/src/Components.tsx
  40. 2 2
      packages/@uppy/status-bar/src/StatusBar.tsx
  41. 1 1
      packages/@uppy/status-bar/src/StatusBarOptions.ts
  42. 1 1
      packages/@uppy/status-bar/src/StatusBarUI.tsx
  43. 1 1
      packages/@uppy/thumbnail-generator/src/index.ts
  44. 1 1
      packages/@uppy/unsplash/src/Unsplash.tsx
  45. 3 3
      packages/@uppy/webcam/src/Webcam.tsx
  46. 1 1
      packages/@uppy/zoom/src/Zoom.tsx

+ 4 - 1
.eslintrc.js

@@ -480,8 +480,11 @@ module.exports = {
       rules: {
         'no-extra-semi': 'off',
         'no-restricted-syntax': ['error', {
-          selector: 'ImportDeclaration[importKind="type"][source.value=/^\\./]:not([source.value=/\\.js$/])',
+          selector: 'ImportDeclaration[importKind="type"][source.value=/^(\\.+|@uppy\\x2F[a-z-0-9]+)\\x2F/]:not([source.value=/^@uppy\\x2Futils\\x2F/]):not([source.value=/\\.js$/])',
           message: 'Use ".js" file extension for import type declarations',
+        }, {
+          selector: 'ImportDeclaration[source.value=/^@uppy\\x2Futils\\x2Flib\\x2F.+\\.[mc]?[jt]sx?$/]',
+          message: 'Do not use file extension when importing from @uppy/utils',
         }],
         'import/prefer-default-export': 'off',
         '@typescript-eslint/no-empty-function': 'off',

+ 1 - 1
packages/@uppy/audio/src/Audio.tsx

@@ -6,7 +6,7 @@ import type {
   Meta,
   MinimalRequiredUppyFile,
 } from '@uppy/utils/lib/UppyFile'
-import type { Uppy } from '@uppy/core/lib/Uppy'
+import type { Uppy } from '@uppy/core/lib/Uppy.js'
 
 import getFileTypeExtension from '@uppy/utils/lib/getFileTypeExtension'
 import supportsMediaRecorder from './supportsMediaRecorder.ts'

+ 1 - 1
packages/@uppy/box/src/Box.tsx

@@ -9,7 +9,7 @@ import { ProviderViews } from '@uppy/provider-views'
 import { h, type ComponentChild } from 'preact'
 
 import type { UppyFile, Body, Meta } from '@uppy/utils/lib/UppyFile'
-import type { UnknownProviderPluginState } from '@uppy/core/lib/Uppy'
+import type { UnknownProviderPluginState } from '@uppy/core/lib/Uppy.js'
 import locale from './locale.ts'
 // eslint-disable-next-line @typescript-eslint/ban-ts-comment
 // @ts-ignore We don't want TS to generate types for the package.json

+ 2 - 2
packages/@uppy/companion-client/src/Provider.ts

@@ -1,11 +1,11 @@
 import type { Uppy } from '@uppy/core'
 import type { Body, Meta } from '@uppy/utils/lib/UppyFile'
-import type { PluginOpts } from '@uppy/core/lib/BasePlugin'
+import type { PluginOpts } from '@uppy/core/lib/BasePlugin.js'
 import type {
   RequestOptions,
   CompanionClientProvider,
 } from '@uppy/utils/lib/CompanionClientProvider'
-import type { UnknownProviderPlugin } from '@uppy/core/lib/Uppy'
+import type { UnknownProviderPlugin } from '@uppy/core/lib/Uppy.js'
 import RequestClient, { authErrorStatusCode } from './RequestClient.ts'
 import type { CompanionPluginOptions } from './index.js'
 

+ 1 - 1
packages/@uppy/compressor/src/index.ts

@@ -7,7 +7,7 @@ import prettierBytes from '@transloadit/prettier-bytes'
 import CompressorJS from 'compressorjs'
 
 import type { Body, Meta, UppyFile } from '@uppy/utils/lib/UppyFile'
-import type { PluginOpts } from '@uppy/core/lib/BasePlugin'
+import type { PluginOpts } from '@uppy/core/lib/BasePlugin.js'
 
 import locale from './locale.ts'
 

+ 1 - 1
packages/@uppy/dashboard/src/Dashboard.tsx

@@ -7,7 +7,7 @@ import {
   type State,
 } from '@uppy/core'
 import type { ComponentChild, VNode } from 'preact'
-import type { DefinePluginOpts } from '@uppy/core/lib/BasePlugin'
+import type { DefinePluginOpts } from '@uppy/core/lib/BasePlugin.js'
 import type { Body, Meta, UppyFile } from '@uppy/utils/lib/UppyFile'
 import StatusBar from '@uppy/status-bar'
 import Informer from '@uppy/informer'

+ 2 - 2
packages/@uppy/drag-drop/src/DragDrop.tsx

@@ -1,6 +1,6 @@
 import { UIPlugin, type Uppy } from '@uppy/core'
-import type { DefinePluginOpts } from '@uppy/core/lib/BasePlugin'
-import type { UIPluginOptions } from '@uppy/core/lib/UIPlugin'
+import type { DefinePluginOpts } from '@uppy/core/lib/BasePlugin.js'
+import type { UIPluginOptions } from '@uppy/core/lib/UIPlugin.js'
 import type { Body, Meta } from '@uppy/utils/lib/UppyFile'
 import type { ChangeEvent } from 'preact/compat'
 import toArray from '@uppy/utils/lib/toArray'

+ 1 - 1
packages/@uppy/drop-target/src/index.ts

@@ -1,5 +1,5 @@
 import type { Body, Meta } from '@uppy/utils/lib/UppyFile'
-import type { Uppy } from '@uppy/core/lib/Uppy'
+import type { Uppy } from '@uppy/core/lib/Uppy.js'
 import type { DefinePluginOpts, PluginOpts } from '@uppy/core/lib/BasePlugin.js'
 import BasePlugin from '@uppy/core/lib/BasePlugin.js'
 import getDroppedFiles from '@uppy/utils/lib/getDroppedFiles'

+ 1 - 1
packages/@uppy/dropbox/src/Dropbox.tsx

@@ -9,7 +9,7 @@ import { ProviderViews } from '@uppy/provider-views'
 import { h, type ComponentChild } from 'preact'
 
 import type { UppyFile, Body, Meta } from '@uppy/utils/lib/UppyFile'
-import type { UnknownProviderPluginState } from '@uppy/core/lib/Uppy'
+import type { UnknownProviderPluginState } from '@uppy/core/lib/Uppy.js'
 import locale from './locale.ts'
 // eslint-disable-next-line @typescript-eslint/ban-ts-comment
 // @ts-ignore We don't want TS to generate types for the package.json

+ 1 - 1
packages/@uppy/facebook/src/Facebook.tsx

@@ -9,7 +9,7 @@ import { ProviderViews } from '@uppy/provider-views'
 import { h, type ComponentChild } from 'preact'
 
 import type { UppyFile, Body, Meta } from '@uppy/utils/lib/UppyFile'
-import type { UnknownProviderPluginState } from '@uppy/core/lib/Uppy'
+import type { UnknownProviderPluginState } from '@uppy/core/lib/Uppy.js'
 import locale from './locale.ts'
 // eslint-disable-next-line @typescript-eslint/ban-ts-comment
 // @ts-ignore We don't want TS to generate types for the package.json

+ 1 - 1
packages/@uppy/golden-retriever/src/index.ts

@@ -1,6 +1,6 @@
 import throttle from 'lodash/throttle.js'
 import BasePlugin from '@uppy/core/lib/BasePlugin.js'
-import type { PluginOpts, DefinePluginOpts } from '@uppy/core/lib/BasePlugin'
+import type { PluginOpts, DefinePluginOpts } from '@uppy/core/lib/BasePlugin.js'
 import type { Body, Meta, UppyFile } from '@uppy/utils/lib/UppyFile'
 import type Uppy from '@uppy/core'
 import type { UploadResult } from '@uppy/core'

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

@@ -1,7 +1,7 @@
 import type {
   PartialTreeFile,
   PartialTreeFolderNode,
-} from '@uppy/core/lib/Uppy'
+} from '@uppy/core/lib/Uppy.js'
 import { ProviderViews } from '@uppy/provider-views'
 import type { Body, Meta } from '@uppy/utils/lib/UppyFile'
 

+ 1 - 1
packages/@uppy/google-drive/src/GoogleDrive.tsx

@@ -9,7 +9,7 @@ import { ProviderViews } from '@uppy/provider-views'
 import { h, type ComponentChild } from 'preact'
 
 import type { UppyFile, Body, Meta } from '@uppy/utils/lib/UppyFile'
-import type { UnknownProviderPluginState } from '@uppy/core/lib/Uppy'
+import type { UnknownProviderPluginState } from '@uppy/core/lib/Uppy.js'
 import DriveProviderViews from './DriveProviderViews.ts'
 import locale from './locale.ts'
 // eslint-disable-next-line @typescript-eslint/ban-ts-comment

+ 1 - 1
packages/@uppy/google-photos/src/GooglePhotos.tsx

@@ -9,7 +9,7 @@ import {
 import { h, type ComponentChild } from 'preact'
 
 import type { UppyFile, Body, Meta } from '@uppy/utils/lib/UppyFile'
-import type { UnknownProviderPluginState } from '@uppy/core/lib/Uppy.ts'
+import type { UnknownProviderPluginState } from '@uppy/core/lib/Uppy.js'
 
 // eslint-disable-next-line @typescript-eslint/ban-ts-comment
 // @ts-ignore We don't want TS to generate types for the package.json

+ 1 - 1
packages/@uppy/instagram/src/Instagram.tsx

@@ -9,7 +9,7 @@ import { ProviderViews } from '@uppy/provider-views'
 import { h, type ComponentChild } from 'preact'
 
 import type { UppyFile, Body, Meta } from '@uppy/utils/lib/UppyFile'
-import type { UnknownProviderPluginState } from '@uppy/core/lib/Uppy'
+import type { UnknownProviderPluginState } from '@uppy/core/lib/Uppy.js'
 import locale from './locale.ts'
 // eslint-disable-next-line @typescript-eslint/ban-ts-comment
 // @ts-ignore We don't want TS to generate types for the package.json

+ 1 - 1
packages/@uppy/onedrive/src/OneDrive.tsx

@@ -9,7 +9,7 @@ import { ProviderViews } from '@uppy/provider-views'
 import { h, type ComponentChild } from 'preact'
 
 import type { UppyFile, Body, Meta } from '@uppy/utils/lib/UppyFile'
-import type { UnknownProviderPluginState } from '@uppy/core/lib/Uppy'
+import type { UnknownProviderPluginState } from '@uppy/core/lib/Uppy.js'
 import locale from './locale.ts'
 // eslint-disable-next-line @typescript-eslint/ban-ts-comment
 // @ts-ignore We don't want TS to generate types for the package.json

+ 1 - 1
packages/@uppy/progress-bar/src/ProgressBar.tsx

@@ -1,6 +1,6 @@
 import { h, type ComponentChild } from 'preact'
 import { UIPlugin, type UIPluginOptions } from '@uppy/core'
-import type { Uppy, State } from '@uppy/core/lib/Uppy'
+import type { Uppy, State } from '@uppy/core/lib/Uppy.js'
 import type { Body, Meta } from '@uppy/utils/lib/UppyFile'
 import type { DefinePluginOpts } from '@uppy/core/lib/BasePlugin.js'
 

+ 1 - 1
packages/@uppy/provider-views/src/Breadcrumbs.tsx

@@ -1,4 +1,4 @@
-import type { PartialTreeFolder } from '@uppy/core/lib/Uppy'
+import type { PartialTreeFolder } from '@uppy/core/lib/Uppy.js'
 import { h, Fragment } from 'preact'
 import type { Body, Meta } from '@uppy/utils/lib/UppyFile'
 import type ProviderView from './ProviderView/index.js'

+ 1 - 1
packages/@uppy/provider-views/src/Browser.tsx

@@ -8,7 +8,7 @@ import type { I18n } from '@uppy/utils/lib/Translator'
 import type {
   PartialTreeFile,
   PartialTreeFolderNode,
-} from '@uppy/core/lib/Uppy.ts'
+} from '@uppy/core/lib/Uppy.js'
 import { useEffect, useState } from 'preact/hooks'
 import Item from './Item/index.tsx'
 import ProviderView from './ProviderView/ProviderView.tsx'

+ 1 - 1
packages/@uppy/provider-views/src/FooterActions.tsx

@@ -2,7 +2,7 @@ import { h } from 'preact'
 import type { I18n } from '@uppy/utils/lib/Translator'
 import type { Meta, Body } from '@uppy/utils/lib/UppyFile'
 import classNames from 'classnames'
-import type { PartialTree } from '@uppy/core/lib/Uppy'
+import type { PartialTree } from '@uppy/core/lib/Uppy.js'
 import { useMemo } from 'preact/hooks'
 import getNumberOfSelectedFiles from './utils/PartialTreeUtils/getNumberOfSelectedFiles.ts'
 import ProviderView from './ProviderView/ProviderView.tsx'

+ 1 - 1
packages/@uppy/provider-views/src/Item/components/GridItem.tsx

@@ -2,7 +2,7 @@ import { h } from 'preact'
 import type {
   PartialTreeFile,
   PartialTreeFolderNode,
-} from '@uppy/core/lib/Uppy'
+} from '@uppy/core/lib/Uppy.js'
 import ItemIcon from './ItemIcon.tsx'
 
 type GridItemProps = {

+ 1 - 1
packages/@uppy/provider-views/src/Item/components/ListItem.tsx

@@ -2,7 +2,7 @@ import type {
   PartialTreeFile,
   PartialTreeFolderNode,
   PartialTreeId,
-} from '@uppy/core/lib/Uppy'
+} from '@uppy/core/lib/Uppy.js'
 import { h } from 'preact'
 import ItemIcon from './ItemIcon.tsx'
 

+ 1 - 1
packages/@uppy/provider-views/src/Item/index.tsx

@@ -7,7 +7,7 @@ import type {
   PartialTreeFile,
   PartialTreeFolderNode,
   PartialTreeId,
-} from '@uppy/core/lib/Uppy.ts'
+} from '@uppy/core/lib/Uppy.js'
 import GridItem from './components/GridItem.tsx'
 import ListItem from './components/ListItem.tsx'
 

+ 1 - 1
packages/@uppy/provider-views/src/ProviderView/Header.tsx

@@ -2,7 +2,7 @@
 import { h } from 'preact'
 import type { I18n } from '@uppy/utils/lib/Translator'
 import type { Body, Meta } from '@uppy/utils/lib/UppyFile'
-import type { PartialTreeFolder } from '@uppy/core/lib/Uppy.ts'
+import type { PartialTreeFolder } from '@uppy/core/lib/Uppy.js'
 import classNames from 'classnames'
 import User from './User.tsx'
 import Breadcrumbs from '../Breadcrumbs.tsx'

+ 3 - 3
packages/@uppy/provider-views/src/ProviderView/ProviderView.tsx

@@ -7,12 +7,12 @@ import type {
   UnknownProviderPluginState,
   PartialTreeId,
   PartialTree,
-} from '@uppy/core/lib/Uppy.ts'
+} from '@uppy/core/lib/Uppy.js'
 import type { Body, Meta } from '@uppy/utils/lib/UppyFile'
-import type { CompanionFile } from '@uppy/utils/lib/CompanionFile.ts'
+import type { CompanionFile } from '@uppy/utils/lib/CompanionFile'
 import type Translator from '@uppy/utils/lib/Translator'
 import classNames from 'classnames'
-import type { ValidateableFile } from '@uppy/core/lib/Restricter.ts'
+import type { ValidateableFile } from '@uppy/core/lib/Restricter.js'
 import remoteFileObjToLocal from '@uppy/utils/lib/remoteFileObjToLocal'
 import AuthView from './AuthView.tsx'
 import Header from './Header.tsx'

+ 2 - 2
packages/@uppy/provider-views/src/SearchProviderView/SearchProviderView.tsx

@@ -8,10 +8,10 @@ import type {
   PartialTreeFolderRoot,
   UnknownSearchProviderPlugin,
   UnknownSearchProviderPluginState,
-} from '@uppy/core/lib/Uppy.ts'
+} from '@uppy/core/lib/Uppy.js'
 import type { CompanionFile } from '@uppy/utils/lib/CompanionFile'
 import classNames from 'classnames'
-import type { ValidateableFile } from '@uppy/core/lib/Restricter.ts'
+import type { ValidateableFile } from '@uppy/core/lib/Restricter.js'
 import remoteFileObjToLocal from '@uppy/utils/lib/remoteFileObjToLocal'
 import SearchInput from '../SearchInput.tsx'
 import Browser from '../Browser.tsx'

+ 1 - 1
packages/@uppy/provider-views/src/utils/PartialTreeUtils/afterFill.ts

@@ -4,7 +4,7 @@ import type {
   PartialTreeFile,
   PartialTreeFolderNode,
   PartialTreeId,
-} from '@uppy/core/lib/Uppy'
+} from '@uppy/core/lib/Uppy.js'
 import type { CompanionFile } from '@uppy/utils/lib/CompanionFile'
 import PQueue from 'p-queue'
 import shallowClone from './shallowClone.ts'

+ 1 - 1
packages/@uppy/provider-views/src/utils/PartialTreeUtils/afterOpenFolder.ts

@@ -3,7 +3,7 @@ import type {
   PartialTreeFile,
   PartialTreeFolder,
   PartialTreeFolderNode,
-} from '@uppy/core/lib/Uppy'
+} from '@uppy/core/lib/Uppy.js'
 import type { CompanionFile } from '@uppy/utils/lib/CompanionFile'
 
 const afterOpenFolder = (

+ 1 - 1
packages/@uppy/provider-views/src/utils/PartialTreeUtils/afterScrollFolder.ts

@@ -4,7 +4,7 @@ import type {
   PartialTreeFolder,
   PartialTreeFolderNode,
   PartialTreeId,
-} from '@uppy/core/lib/Uppy'
+} from '@uppy/core/lib/Uppy.js'
 import type { CompanionFile } from '@uppy/utils/lib/CompanionFile'
 
 const afterScrollFolder = (

+ 1 - 1
packages/@uppy/provider-views/src/utils/PartialTreeUtils/afterToggleCheckbox.ts

@@ -5,7 +5,7 @@ import type {
   PartialTreeFolder,
   PartialTreeFolderNode,
   PartialTreeId,
-} from '@uppy/core/lib/Uppy'
+} from '@uppy/core/lib/Uppy.js'
 import shallowClone from './shallowClone.ts'
 
 /*

+ 1 - 1
packages/@uppy/provider-views/src/utils/PartialTreeUtils/getBreadcrumbs.ts

@@ -3,7 +3,7 @@ import type {
   PartialTreeFolder,
   PartialTreeFolderNode,
   PartialTreeId,
-} from '@uppy/core/lib/Uppy'
+} from '@uppy/core/lib/Uppy.js'
 
 const getBreadcrumbs = (
   partialTree: PartialTree,

+ 1 - 1
packages/@uppy/provider-views/src/utils/PartialTreeUtils/getCheckedFilesWithPaths.ts

@@ -4,7 +4,7 @@ import type {
   PartialTreeFile,
   PartialTreeFolderNode,
   PartialTreeId,
-} from '@uppy/core/lib/Uppy'
+} from '@uppy/core/lib/Uppy.js'
 import type { CompanionFile } from '@uppy/utils/lib/CompanionFile'
 
 export interface Cache {

+ 1 - 1
packages/@uppy/provider-views/src/utils/PartialTreeUtils/getNumberOfSelectedFiles.ts

@@ -1,4 +1,4 @@
-import type { PartialTree } from '@uppy/core/lib/Uppy'
+import type { PartialTree } from '@uppy/core/lib/Uppy.js'
 
 /**
  * We're interested in all 'checked' leaves of this tree,

+ 1 - 1
packages/@uppy/provider-views/src/utils/PartialTreeUtils/index.test.ts

@@ -7,7 +7,7 @@ import type {
   PartialTreeFolderNode,
   PartialTreeFolderRoot,
   PartialTreeId,
-} from '@uppy/core/lib/Uppy.ts'
+} from '@uppy/core/lib/Uppy.js'
 import afterToggleCheckbox from './afterToggleCheckbox.ts'
 import afterOpenFolder from './afterOpenFolder.ts'
 import afterScrollFolder from './afterScrollFolder.ts'

+ 1 - 1
packages/@uppy/provider-views/src/utils/PartialTreeUtils/shallowClone.ts

@@ -1,4 +1,4 @@
-import type { PartialTree } from '@uppy/core/lib/Uppy'
+import type { PartialTree } from '@uppy/core/lib/Uppy.js'
 
 /**
  * One-level copying is sufficient as mutations within our `partialTree` are limited to properties

+ 1 - 1
packages/@uppy/provider-views/src/utils/getClickedRange.ts

@@ -1,7 +1,7 @@
 import type {
   PartialTreeFile,
   PartialTreeFolderNode,
-} from '@uppy/core/lib/Uppy'
+} from '@uppy/core/lib/Uppy.js'
 
 // Shift-clicking selects a single consecutive list of items
 // starting at the previous click.

+ 1 - 1
packages/@uppy/remote-sources/src/index.ts

@@ -15,7 +15,7 @@ import Unsplash from '@uppy/unsplash'
 import Url from '@uppy/url'
 import Zoom from '@uppy/zoom'
 
-import type { DefinePluginOpts } from '@uppy/core/lib/BasePlugin'
+import type { DefinePluginOpts } from '@uppy/core/lib/BasePlugin.js'
 import type { Body, Meta } from '@uppy/utils/lib/UppyFile'
 // eslint-disable-next-line @typescript-eslint/ban-ts-comment
 // @ts-ignore We don't want TS to generate types for the package.json

+ 1 - 1
packages/@uppy/screen-capture/src/ScreenCapture.tsx

@@ -1,7 +1,7 @@
 import { h, type ComponentChild } from 'preact'
 import { UIPlugin, Uppy, type UIPluginOptions } from '@uppy/core'
 import getFileTypeExtension from '@uppy/utils/lib/getFileTypeExtension'
-import type { DefinePluginOpts } from '@uppy/core/lib/BasePlugin'
+import type { DefinePluginOpts } from '@uppy/core/lib/BasePlugin.js'
 import type { Body, Meta } from '@uppy/utils/lib/UppyFile'
 import ScreenRecIcon from './ScreenRecIcon.tsx'
 import RecorderScreen from './RecorderScreen.tsx'

+ 1 - 1
packages/@uppy/status-bar/src/Components.tsx

@@ -1,5 +1,5 @@
 import type { Body, Meta } from '@uppy/utils/lib/UppyFile'
-import type { State, Uppy } from '@uppy/core/lib/Uppy'
+import type { State, Uppy } from '@uppy/core/lib/Uppy.js'
 import type { FileProcessingInfo } from '@uppy/utils/lib/FileProgress'
 import type { I18n } from '@uppy/utils/lib/Translator'
 import { h } from 'preact'

+ 2 - 2
packages/@uppy/status-bar/src/StatusBar.tsx

@@ -1,7 +1,7 @@
 import type { ComponentChild } from 'preact'
 import type { Body, Meta, UppyFile } from '@uppy/utils/lib/UppyFile'
-import type { Uppy, State } from '@uppy/core/lib/Uppy'
-import type { DefinePluginOpts } from '@uppy/core/lib/BasePlugin'
+import type { Uppy, State } from '@uppy/core/lib/Uppy.js'
+import type { DefinePluginOpts } from '@uppy/core/lib/BasePlugin.js'
 import { UIPlugin } from '@uppy/core'
 import emaFilter from '@uppy/utils/lib/emaFilter'
 import getTextDirection from '@uppy/utils/lib/getTextDirection'

+ 1 - 1
packages/@uppy/status-bar/src/StatusBarOptions.ts

@@ -1,4 +1,4 @@
-import type { UIPluginOptions } from '@uppy/core/lib/UIPlugin'
+import type { UIPluginOptions } from '@uppy/core/lib/UIPlugin.js'
 import type StatusBarLocale from './locale.js'
 
 export interface StatusBarOptions extends UIPluginOptions {

+ 1 - 1
packages/@uppy/status-bar/src/StatusBarUI.tsx

@@ -1,6 +1,6 @@
 import type { Body, Meta, UppyFile } from '@uppy/utils/lib/UppyFile'
 import type { I18n } from '@uppy/utils/lib/Translator'
-import type { Uppy, State } from '@uppy/core/lib/Uppy'
+import type { Uppy, State } from '@uppy/core/lib/Uppy.js'
 import { h } from 'preact'
 import classNames from 'classnames'
 import statusBarStates from './StatusBarStates.ts'

+ 1 - 1
packages/@uppy/thumbnail-generator/src/index.ts

@@ -6,7 +6,7 @@ import isPreviewSupported from '@uppy/utils/lib/isPreviewSupported'
 // @ts-ignore untyped
 import { rotation } from 'exifr/dist/mini.esm.mjs'
 
-import type { DefinePluginOpts } from '@uppy/core/lib/BasePlugin'
+import type { DefinePluginOpts } from '@uppy/core/lib/BasePlugin.js'
 import type { Body, Meta, UppyFile } from '@uppy/utils/lib/UppyFile'
 import locale from './locale.ts'
 // eslint-disable-next-line @typescript-eslint/ban-ts-comment

+ 1 - 1
packages/@uppy/unsplash/src/Unsplash.tsx

@@ -9,7 +9,7 @@ import { SearchProviderViews } from '@uppy/provider-views'
 import { h, type ComponentChild } from 'preact'
 
 import type { UppyFile, Body, Meta } from '@uppy/utils/lib/UppyFile'
-import type { UnknownSearchProviderPluginState } from '@uppy/core/lib/Uppy'
+import type { UnknownSearchProviderPluginState } from '@uppy/core/lib/Uppy.js'
 import locale from './locale.ts'
 // eslint-disable-next-line @typescript-eslint/ban-ts-comment
 // @ts-ignore We don't want TS to generate types for the package.json

+ 3 - 3
packages/@uppy/webcam/src/Webcam.tsx

@@ -2,13 +2,13 @@ import { h, type ComponentChild } from 'preact'
 
 import { UIPlugin } from '@uppy/core'
 import type { Uppy, UIPluginOptions } from '@uppy/core'
-import type { DefinePluginOpts } from '@uppy/core/lib/BasePlugin'
+import type { DefinePluginOpts } from '@uppy/core/lib/BasePlugin.js'
 import type {
   Body,
   Meta,
   MinimalRequiredUppyFile,
-} from '@uppy/utils/lib/UppyFile.ts'
-import type { PluginTarget } from '@uppy/core/lib/UIPlugin'
+} from '@uppy/utils/lib/UppyFile'
+import type { PluginTarget } from '@uppy/core/lib/UIPlugin.js'
 import getFileTypeExtension from '@uppy/utils/lib/getFileTypeExtension'
 import mimeTypes from '@uppy/utils/lib/mimeTypes'
 import isMobile from 'is-mobile'

+ 1 - 1
packages/@uppy/zoom/src/Zoom.tsx

@@ -9,7 +9,7 @@ import { ProviderViews } from '@uppy/provider-views'
 import { h, type ComponentChild } from 'preact'
 
 import type { UppyFile, Body, Meta } from '@uppy/utils/lib/UppyFile'
-import type { UnknownProviderPluginState } from '@uppy/core/lib/Uppy'
+import type { UnknownProviderPluginState } from '@uppy/core/lib/Uppy.js'
 import locale from './locale.ts'
 // eslint-disable-next-line @typescript-eslint/ban-ts-comment
 // @ts-ignore We don't want TS to generate types for the package.json