Skip to content

Commit

Permalink
Update fs-rmSync.js
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnAngela authored Mar 2, 2022
1 parent 783173f commit 88a7987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extra/fs-rmSync.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const fs = require("fs");
/**
* Detect if `fs.rmSync` is available
* to avoid the runtime warning triggered for using `fs.rmdirSync` with `{ recursive: true }` in Node.js v16,
* to avoid the runtime deprecation warning triggered for using `fs.rmdirSync` with `{ recursive: true }` in Node.js v16,
* or the `recursive` property removing completely in the future Node.js version.
* See the link below.
* @link https://nodejs.org/docs/latest-v16.x/api/deprecations.html#dep0147-fsrmdirpath--recursive-true-
Expand Down

0 comments on commit 88a7987

Please sign in to comment.