From be50a9329ef3548e44d2c4be42ff7ac4c06e06bf Mon Sep 17 00:00:00 2001 From: "Ch. Szandor Knapp" Date: Tue, 21 Nov 2023 11:40:14 +0100 Subject: [PATCH] feat: add output --- scripts/ci/prepare-scan.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/scripts/ci/prepare-scan.js b/scripts/ci/prepare-scan.js index 7db40bc..200619c 100644 --- a/scripts/ci/prepare-scan.js +++ b/scripts/ci/prepare-scan.js @@ -122,11 +122,11 @@ async function processLegacyFiles(modifiedFiles, legacyFiles) { /** * Prints the full paths of legacy files. - * @param {string[]} legacyFiles - Array of legacy file paths. + * @param {string[]} fileList - Array of legacy file paths. */ -async function printLegacyFiles(legacyFiles) { +async function printFiles(fileList) { try { - for (const file of legacyFiles) { + for (const file of fileList) { console.log(path.resolve(file)); } } catch (error) { @@ -150,8 +150,14 @@ async function main() { const processedLegacyFiles = await processLegacyFiles(filteredFiles, legacyFiles); + console.log('**MODIFIED FILES**'); + await printFiles(modifiedFiles); + + console.log('**FILTERED FILES**'); + await printFiles(filteredFiles); + console.log('**LEGACY FILES**'); - await printLegacyFiles(processedLegacyFiles); + await printFiles(processedLegacyFiles); console.log('File processing complete.'); } catch (error) {