db-migrate / node-db-migrate

Database migration framework for node
Other
2.32k stars 360 forks source link

Replace `mkdirp` with `fs.mkdirSync(path, { recursive: true })` #835

Open trivikr opened 4 weeks ago

trivikr commented 4 weeks ago

Is your feature request related to a problem? Please describe.

The mkdirp utility is used in db-migrate https://github.com/search?q=repo%3Adb-migrate%2Fnode-db-migrate%20mkdirp&type=code

It can be replaced with Node.js native fs.mkdirSync added recursive option in Node.js v10.12.0 published on Oct 10, 2018.

Describe the solution you'd like

Replace mkdirp with fs.mkdirSync(path, { recursive: true })

Additional context

The mkdirp currently uses these native APIs: