| | |
| | | import path from "path"; |
| | | import { FilePath } from "./path"; |
| | | import { globby } from "globby"; |
| | | import path from "path" |
| | | import { FilePath } from "./path" |
| | | import { globby } from "globby" |
| | | |
| | | export function toPosixPath(fp: string): string { |
| | | return fp.split(path.sep).join("/") |
| | | } |
| | | |
| | | export async function glob(pattern: string, cwd: string, ignorePatterns: string[]): Promise<FilePath[]> { |
| | | export async function glob( |
| | | pattern: string, |
| | | cwd: string, |
| | | ignorePatterns: string[], |
| | | ): Promise<FilePath[]> { |
| | | const fps = ( |
| | | await globby(pattern, { |
| | | cwd, |