diff --git a/forge.config.js b/forge.config.js index 44d4f47bb..2d50e349d 100644 --- a/forge.config.js +++ b/forge.config.js @@ -151,12 +151,11 @@ if (platform === 'darwin') { // Directory to inspect const dirPath = path.join(buildPath, 'node_modules/macos-alias/build/node_gyp_bins'); - // Check if the directory exists - if (fs.existsSync(buildPath)) { + if (fs.existsSync(dirPath)) { // List files in the directory console.log("Contents of the directory before removal: "); - const files = fs.readdirSync(path.join(buildPath)); + const files = fs.readdirSync(path.join(dirPath)); files.forEach(file => { console.log(file); }); @@ -176,6 +175,7 @@ if (platform === 'darwin') { }); } else { console.log(`Directory not found: ${dirPath}`); + } }