@nomiclabs/buidler
Version:
Buidler is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.
11 lines (8 loc) • 332 B
text/typescript
import util from "util";
export async function glob(pattern: string): Promise<string[]> {
const { default: globModule } = await import("glob");
return util.promisify(globModule)(pattern, { realpath: true });
}
export function globSync(pattern: string): string[] {
return require("glob").sync(pattern, { realpath: true });
}