-
Notifications
You must be signed in to change notification settings - Fork 106
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!: bump engines to Node.js 22 #312
base: main
Are you sure you want to change the base?
Conversation
d('* Replacing existing file'); | ||
await fs.remove(cachePath); | ||
|
||
if (!fs.existsSync(path.dirname(cachePath))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: this new clause is needed because fs.rename
will fail if the target directory doesn't exist, while fs.move
creates the directory.
This also doesn't work across disks, but we could catch the resulting error and fall back to an fs.copy
call if necessary.
"debug": "^4.1.1", | ||
"env-paths": "^2.2.0", | ||
"fs-extra": "^8.1.0", | ||
"got": "^11.8.5", | ||
"progress": "^2.0.3", | ||
"semver": "^6.2.0", | ||
"sumchecker": "^3.0.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to bump major versions here while we're at it?
BREAKING CHANGE: bumps minimum Node.js version to 22