format
This commit is contained in:
parent
f38ed1f1c6
commit
7264f15314
@ -1,12 +1,16 @@
|
|||||||
import path from "path";
|
import path from "path"
|
||||||
import { FilePath } from "./path";
|
import { FilePath } from "./path"
|
||||||
import { globby } from "globby";
|
import { globby } from "globby"
|
||||||
|
|
||||||
export function toPosixPath(fp: string): string {
|
export function toPosixPath(fp: string): string {
|
||||||
return fp.split(path.sep).join("/")
|
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 = (
|
const fps = (
|
||||||
await globby(pattern, {
|
await globby(pattern, {
|
||||||
cwd,
|
cwd,
|
||||||
|
Loading…
Reference in New Issue
Block a user