diff --git a/packages/dev-server-storybook/src/shared/stories/findStories.ts b/packages/dev-server-storybook/src/shared/stories/findStories.ts index 328de3142..72f4dee2d 100644 --- a/packages/dev-server-storybook/src/shared/stories/findStories.ts +++ b/packages/dev-server-storybook/src/shared/stories/findStories.ts @@ -1,4 +1,4 @@ -import globby from 'globby'; +import { globby } from 'globby'; import path from 'path'; import { createBrowserImport, createError } from '../utils.js'; diff --git a/packages/test-runner-core/src/runner/collectTestFiles.ts b/packages/test-runner-core/src/runner/collectTestFiles.ts index a77c115b3..fa02db0c1 100644 --- a/packages/test-runner-core/src/runner/collectTestFiles.ts +++ b/packages/test-runner-core/src/runner/collectTestFiles.ts @@ -1,7 +1,7 @@ -import globby from 'globby'; +import { globbySync } from 'globby'; import { sep } from 'path'; export function collectTestFiles(patterns: string | string[], baseDir = process.cwd()) { const normalizedPatterns = [patterns].flat().map(p => p.split(sep).join('/')); - return globby.sync(normalizedPatterns, { cwd: baseDir, absolute: true }); + return globbySync(normalizedPatterns, { cwd: baseDir, absolute: true }); } diff --git a/packages/test-runner/src/config/collectGroupConfigs.ts b/packages/test-runner/src/config/collectGroupConfigs.ts index 9f3951ac6..416dc1b12 100644 --- a/packages/test-runner/src/config/collectGroupConfigs.ts +++ b/packages/test-runner/src/config/collectGroupConfigs.ts @@ -1,6 +1,6 @@ import { TestRunnerGroupConfig } from '@web/test-runner-core'; import { readConfig, ConfigLoaderError } from '@web/config-loader'; -import globby from 'globby'; +import { globbySync } from 'globby'; import { TestRunnerStartError } from '../TestRunnerStartError'; function validateGroupConfig(configFilePath: string, config: Partial) { @@ -24,7 +24,7 @@ export async function collectGroupConfigs(patterns: string[]) { const groupConfigs: TestRunnerGroupConfig[] = []; for (const pattern of patterns) { - const filePaths = globby.sync(pattern, { absolute: true }); + const filePaths = globbySync(pattern, { absolute: true }); for (const filePath of filePaths) { groupConfigFiles.add(filePath); }