fix(core): respect nxignore when using git hashing
This commit is contained in:
parent
afd99b27de
commit
b03a5d8474
@ -215,12 +215,13 @@ export function rootWorkspaceFileData(): FileData[] {
|
||||
}
|
||||
|
||||
export function readWorkspaceFiles(): FileData[] {
|
||||
const workspaceJson = readWorkspaceJson();
|
||||
performance.mark('read workspace files:start');
|
||||
|
||||
if (defaultFileHasher.usesGitForHashing) {
|
||||
const ignoredGlobs = getIgnoredGlobs();
|
||||
const r = defaultFileHasher
|
||||
.allFiles()
|
||||
.filter((f) => !ignoredGlobs.ignores(f))
|
||||
.map((f) => getFileData(`${appRootPath}/${f}`));
|
||||
performance.mark('read workspace files:end');
|
||||
performance.measure(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user