Skip to content

Commit

Permalink
pr changes
Browse files Browse the repository at this point in the history
  • Loading branch information
EladBezalel committed Sep 30, 2024
1 parent d2aee76 commit 40f8c55
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions libs/core/src/true-affected.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,26 +108,28 @@ export const trueAffected = async ({
)
.map(({ filePath }) => filePath);

let nonSourceChangedFiles: ChangedFiles[] = [];

if (nonSourceChangedFilesPaths.length > 0) {
logger.debug(
`Finding non-source affected files for ${chalk.bold(
nonSourceChangedFilesPaths.join(', ')
)}`
);
}

const nonSourceChangedFiles = findNonSourceAffectedFiles(
cwd,
nonSourceChangedFilesPaths,
ignoredPaths
);

if (nonSourceChangedFiles.length > 0) {
logger.debug(
`Found ${chalk.bold(
nonSourceChangedFiles.length
)} non-source affected files`
nonSourceChangedFiles = findNonSourceAffectedFiles(
cwd,
nonSourceChangedFilesPaths,
ignoredPaths
);

if (nonSourceChangedFiles.length > 0) {
logger.debug(
`Found ${chalk.bold(
nonSourceChangedFiles.length
)} non-source affected files`
);
}
}

let changedFilesByLockfile: ChangedFiles[] = [];
Expand Down

0 comments on commit 40f8c55

Please sign in to comment.