chore: properly export getFileByPath
This commit is contained in:
@@ -3,11 +3,11 @@ import type { Payload } from 'payload/types'
|
||||
|
||||
import { expect, test } from '@playwright/test'
|
||||
import path from 'path'
|
||||
import { getFileByPath } from 'payload/utilities'
|
||||
import { fileURLToPath } from 'url'
|
||||
|
||||
import type { Page as PayloadPage } from './payload-types.js'
|
||||
|
||||
import getFileByPath from '../../packages/payload/src/uploads/getFileByPath.js'
|
||||
import { initPageConsoleErrorCatch } from '../helpers.js'
|
||||
import { AdminUrlUtil } from '../helpers/adminUrlUtil.js'
|
||||
import { initPayloadE2E } from '../helpers/initPayloadE2E.js'
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import type { Payload } from 'payload'
|
||||
|
||||
import path from 'path'
|
||||
import { getFileByPath } from 'payload/utilities'
|
||||
import { fileURLToPath } from 'url'
|
||||
|
||||
import getFileByPath from '../../packages/payload/src/uploads/getFileByPath.js'
|
||||
import { initPayloadInt } from '../helpers/initPayloadInt.js'
|
||||
import removeFiles from '../helpers/removeFiles.js'
|
||||
import configPromise from './config.js'
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import path from 'path'
|
||||
|
||||
import type { Payload, PayloadRequest } from 'payload'
|
||||
|
||||
import getFileByPath from '../../../packages/payload/src/uploads/getFileByPath.js'
|
||||
import path from 'path'
|
||||
import { getFileByPath } from 'payload/utilities'
|
||||
|
||||
import { mediaSlug } from '../shared.js'
|
||||
|
||||
export const seed = async (payload: Payload): Promise<boolean> => {
|
||||
|
||||
Reference in New Issue
Block a user