diff --git a/cli/cli.js b/cli/cli.js index f04e7c2f8..e3f3818c2 100644 --- a/cli/cli.js +++ b/cli/cli.js @@ -191,6 +191,9 @@ async function findFilesToDelete(outputPath, fileMap) { .filter(([entry, absolutePath]) => { return entry.isFile() && !generatedFiles.includes(absolutePath) }) + .map(([entry, absolutePath]) => { + return absolutePath + }) const subDirFilesToDelete = entries .filter(entry => entry.isDirectory())