fix: fast-glob import
This commit is contained in:
parent
6b489ede0e
commit
5bf3d6b769
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue