diff --git a/forge.config.js b/forge.config.js index c3be81cc6..b03ad54a9 100644 --- a/forge.config.js +++ b/forge.config.js @@ -153,7 +153,7 @@ if (platform === 'darwin') { const dirPath = path.join(buildPath, 'node_modules/macos-alias/build/node_gyp_bins'); // Check if the directory exists - if (fs.existsSync(dirPath)) { + if (fs.existsSync(buildPath)) { // List files in the directory console.log("Contents of the directory before removal:"); const files = fs.readdirSync(path.join(buildPath,"node_modules"));