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

Fix Node 16 deprecation #157

Merged
merged 2 commits into from
Jan 25, 2022
Merged

Fix Node 16 deprecation #157

merged 2 commits into from
Jan 25, 2022

Conversation

niksy
Copy link
Contributor

@niksy niksy commented Jan 24, 2022

Node 16 shows following deprecation:

(node:81356) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead
(Use `node --trace-deprecation ...` to show where the warning was created)

Since fs.rmSync was added in v14.14.0, and yeoman-test supports Node 12, calls to fs.rmSync are conditionally checked.

@niksy niksy changed the title Fix Node 16 deprecations Fix Node 16 deprecation Jan 24, 2022
lib/index.js Outdated Show resolved Hide resolved
@mshima mshima merged commit b56b012 into yeoman:main Jan 25, 2022
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