From 47fbd28cba14f7262297fc53daa7f971c1f780bf Mon Sep 17 00:00:00 2001 From: sharonamr Date: Mon, 12 Aug 2024 15:16:27 +0300 Subject: [PATCH] Update affected.js --- packages/affected/bin/affected.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/affected/bin/affected.js b/packages/affected/bin/affected.js index 891abd4..65134a2 100755 --- a/packages/affected/bin/affected.js +++ b/packages/affected/bin/affected.js @@ -29,7 +29,7 @@ const [parsedFlags, args] = flagsParser(supportedArgs, allArgs); const base = parsedFlags['--base']; console.log('affected args:', parsedFlags); -const ignoredFiles = glob.sync(parsedFlags['--ignore-pattern']); +const ignoredFiles = parsedFlags['--ignore-pattern'] ? glob.sync(parsedFlags['--ignore-pattern']) : []; const affectedFiles = getAffectedFiles(base); export const getFileContent = (filePath) => {