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

feat: introduce @npmcli/fs for tmp dir methods #59

Merged
merged 2 commits into from
Aug 26, 2021
Merged

feat: introduce @npmcli/fs for tmp dir methods #59

merged 2 commits into from
Aug 26, 2021

Conversation

nlf
Copy link
Contributor

@nlf nlf commented Aug 25, 2021

the notable and functional change here is that temp directories will now be generated via fs.mkdtemp() instead of the result of unique-filename, which allows the operating system to take over things like checking for collisions for us hopefully resolving any current EEXIST errors we get related to temp directories

References

Fixes npm/cli#3079

@nlf nlf requested a review from a team as a code owner August 25, 2021 19:32
Copy link

@fritzy fritzy left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@fritzy fritzy left a comment

Choose a reason for hiding this comment

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

There are two unused constants.

@nlf nlf merged commit 274d456 into latest Aug 26, 2021
@nlf nlf deleted the nlf/npmcli-fs branch August 26, 2021 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants