fork of hey-api/openapi-ts because I need some additional things
at feat/skip-token 8 lines 203 B view raw
1import type { PathLike } from 'node:fs'; 2import fs from 'node:fs'; 3 4export function ensureDirSync(path: PathLike): void { 5 if (!fs.existsSync(path)) { 6 fs.mkdirSync(path, { recursive: true }); 7 } 8}