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.mkdir with recursive flag #1291

Merged
merged 2 commits into from
Feb 13, 2021
Merged

Replace mkdirp with fs.mkdir with recursive flag #1291

merged 2 commits into from
Feb 13, 2021

Conversation

TrySound
Copy link
Member

@TrySound TrySound commented Oct 2, 2020

Ref https://nodejs.org/dist/latest-v10.x/docs/api/fs.html#fs_fs_mkdir_path_options_callback

Node 10 add "recursive" flag support to fs.mkdir which behaves similar
to mkdirp package.

Though this requires to bump node support.

@TrySound
Copy link
Member Author

TrySound commented Oct 2, 2020

cc @GreLI

package.json Outdated
@@ -73,7 +72,7 @@
"should": "~13.2.3"
},
"engines": {
"node": ">=4.0.0"
"node": ">=10.0.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"node": ">=10.0.0"
"node": ">=10.12.0"

According to the docs, this was only added in 10.12

Ref https://nodejs.org/dist/latest-v10.x/docs/api/fs.html#fs_fs_mkdir_path_options_callback

Node 10 add "recursive" flag support to fs.mkdir which behaves similar
to mkdirp package.

Though this requires to bump node support.
@TrySound TrySound merged commit 4a08c6d into svg:master Feb 13, 2021
@TrySound TrySound deleted the mkdir-recursive branch February 13, 2021 18:46
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

Successfully merging this pull request may close these issues.

2 participants