fix: fast-glob import
This commit is contained in:
+3
-3
@@ -1,6 +1,6 @@
|
||||
import { readFileSync, existsSync } from 'node:fs';
|
||||
import { dirname, resolve, relative } from 'node:path';
|
||||
import { glob } from 'fast-glob';
|
||||
import fg from 'fast-glob';
|
||||
import type { YarnProject } from './types';
|
||||
import { validateYarnProject, type SchemaValidationError } from './validator';
|
||||
import { parseYarn } from '../yarn-spinner/parse/parser';
|
||||
@@ -104,7 +104,7 @@ export async function loadYarnProject(
|
||||
const sourcePatterns = project.sourceFiles;
|
||||
const ignorePatterns = project.excludeFiles || [];
|
||||
|
||||
const yarnFilePaths = await glob(sourcePatterns, {
|
||||
const yarnFilePaths = await fg.glob(sourcePatterns, {
|
||||
cwd: baseDir,
|
||||
ignore: ignorePatterns,
|
||||
absolute: true,
|
||||
@@ -171,7 +171,7 @@ export function loadYarnProjectSync(
|
||||
const sourcePatterns = project.sourceFiles;
|
||||
const ignorePatterns = project.excludeFiles || [];
|
||||
|
||||
const yarnFilePaths = glob.sync(sourcePatterns, {
|
||||
const yarnFilePaths = fg.globSync(sourcePatterns, {
|
||||
cwd: baseDir,
|
||||
ignore: ignorePatterns,
|
||||
absolute: true,
|
||||
|
||||
Reference in New Issue
Block a user