f4f6fea71f
Fix #14902 I created a separated helper that wraps `fs.promises.mkdir` and sets `recursive` option to `true` by default. I'm not sure if this is the right approach (maybe it should just call `fs.promises.mkdir` from `create-app.ts`?), any thoughts?
8 lines
157 B
TypeScript
8 lines
157 B
TypeScript
import fs from 'fs'
|
|
|
|
export function makeDir(
|
|
root: string,
|
|
options = { recursive: true }
|
|
): Promise<void> {
|
|
return fs.promises.mkdir(root, options)
|
|
}
|