-
Notifications
You must be signed in to change notification settings - Fork 430
Closed
Description
Is your feature request related to a problem? Please describe.
The mkdirp.sync utility is used in
json-schema-to-typescript/src/cli.ts
Line 122 in 17dc5ed
| mkdirp.sync(dirname(outputPath)) |
Node.js fs.mkdirSync added recursive option in Node.js v10.12.0 published on Oct 10, 2018.
The mkdirp currently uses these native APIs:
- https://github.com/isaacs/node-mkdirp/blob/fdf6005432c2506ce31f8cae237039dda2f8479d/src/opts-arg.ts#L4-L8
- https://github.com/isaacs/node-mkdirp/blob/fdf6005432c2506ce31f8cae237039dda2f8479d/src/mkdirp-native.ts#L13-L19
Describe the solution you'd like
Replace mkdirp with fs.mkdirSync(path, { recursive: true })