Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wojtekmaj opened this issue Feb 14, 2024 · 0 comments
Open

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

wojtekmaj opened this issue Feb 14, 2024 · 0 comments

Comments

@wojtekmaj
Copy link

tsimp works with Node.js v16.17.0 and up, according to package.json engines entry.

In Node.js v10.12.0, recursive option was added to fs.mkdirSync. This option allows you to create a directory and all its parent directories if they do not exist.

Given the above, I believe you could safely replace mkdirp with fs.mkdirSync(path, { recursive: true }) and reduce the number of dependencies in this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant