Skip to content

Commit

Permalink
feat(core): add ignoredPaths to arguments and support regex
Browse files Browse the repository at this point in the history
  • Loading branch information
itayper committed Sep 24, 2024
1 parent 6128bf3 commit c0d99b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions libs/core/src/true-affected.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export const trueAffected = async ({
include = [DEFAULT_INCLUDE_TEST_FILES],
logger = DEFAULT_LOGGER,
compilerOptions = {},
ignoredPaths = [/node_modules/, './build', './dist', './.git'],
__experimentalLockfileCheck = false,
}: TrueAffected) => {
logger.debug('Getting affected projects');
Expand Down Expand Up @@ -98,8 +99,6 @@ export const trueAffected = async ({
({ filePath }) => project.getSourceFile(resolve(cwd, filePath)) != null
);

const ignoredPaths = ['./node_modules', './build', './dist', './.git'];

const nonSourceChangedFiles = changedFiles
.filter(
({ filePath }) =>
Expand Down
3 changes: 2 additions & 1 deletion libs/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export interface TrueAffected extends TrueAffectedLogging {
projects: TrueAffectedProject[];
include?: (string | RegExp)[];
compilerOptions?: CompilerOptions;

ignoredPaths?: (string | RegExp)[];

// **experimental** - this is an experimental feature and may be removed or changed at any time
__experimentalLockfileCheck?: boolean;
}

0 comments on commit c0d99b8

Please sign in to comment.