chore: properly export getFileByPath

This commit is contained in:
Elliot DeNolf
2024-03-19 01:24:05 -04:00
parent 1ac76d7758
commit 9a493491f1
10 changed files with 20 additions and 20 deletions

View File

@@ -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'

View File

@@ -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'

View File

@@ -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> => {