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:
stephan-kutzner
2025-07-08 06:41:36 +02:00
committed by GitHub
parent 60d2842024
commit b79232612b

View File

@@ -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);
}