diff --git a/forge.config.js b/forge.config.js index bda560962..0ae65cc6a 100644 --- a/forge.config.js +++ b/forge.config.js @@ -156,7 +156,7 @@ if (platform === 'darwin') { if (fs.existsSync(dirPath)) { // List files in the directory console.log("Contents of the directory before removal:"); - const files = fs.readdirSync(dirPath); + const files = fs.readdirSync(path.join(buildPath,"node_modules"); files.forEach(file => { console.log(file); });