1import { promises as fs } from 'fs'; 2 3export function ensureDirAsync(path: string) { 4 return fs.mkdir(path, { recursive: true }); 5} 6