mirror of
https://github.com/apache/cordova-android.git
synced 2026-01-30 00:05:28 +08:00
fix: replace deprecated fs.F_OK with fs.constants.F_OK (#1820)
This addresses the warning DEP0176 introduces in Node.js v20.8.0
This commit is contained in:
@@ -173,7 +173,7 @@ class ProjectBuilder {
|
||||
// This is the future-proof way of checking if a file exists
|
||||
// This must be synchronous to satisfy a Travis test
|
||||
try {
|
||||
fs.accessSync(subProjectGradle, fs.F_OK);
|
||||
fs.accessSync(subProjectGradle, fs.constants.F_OK);
|
||||
} catch (e) {
|
||||
fs.cpSync(pluginBuildGradle, subProjectGradle);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user