Fix remaining package.json imports (#5862)

Closes #5860
This commit is contained in:
Merlijn Vos 2025-08-01 17:16:01 +02:00 committed by GitHub
parent 1d21d9ce77
commit c66fd85340
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 11 additions and 6 deletions

View file

@ -0,0 +1,7 @@
---
"@uppy/redux-dev-tools": patch
"@uppy/provider-views": patch
"@uppy/store-redux": patch
---
Fix package.json import

View file

@ -15,8 +15,7 @@ import remoteFileObjToLocal from '@uppy/utils/lib/remoteFileObjToLocal'
import type { I18n } from '@uppy/utils/lib/Translator'
import classNames from 'classnames'
import { h } from 'preact'
// @ts-ignore We don't want TS to generate types for the package.json
import packageJson from '../../package.json'
import packageJson from '../../package.json' with { type: 'json' }
import Browser from '../Browser.js'
import FooterActions from '../FooterActions.js'
import SearchInput from '../SearchInput.js'

View file

@ -14,8 +14,7 @@ import type { CompanionFile } from '@uppy/utils/lib/CompanionFile'
import remoteFileObjToLocal from '@uppy/utils/lib/remoteFileObjToLocal'
import classNames from 'classnames'
import { h } from 'preact'
// @ts-ignore We don't want TS to generate types for the package.json
import packageJson from '../../package.json'
import packageJson from '../../package.json' with { type: 'json' }
import Browser from '../Browser.js'
import FooterActions from '../FooterActions.js'
import SearchInput from '../SearchInput.js'

View file

@ -1,6 +1,6 @@
import { UIPlugin } from '@uppy/core'
import packageJson from '../package.json'
import packageJson from '../package.json' with { type: 'json' }
/**
* Add Redux DevTools support to Uppy

View file

@ -1,6 +1,6 @@
import { nanoid } from 'nanoid/non-secure'
import packageJson from '../package.json'
import packageJson from '../package.json' with { type: 'json' }
// Redux action name.
export const STATE_UPDATE = 'uppy/STATE_UPDATE'