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[] {
|
export function readWorkspaceFiles(): FileData[] {
|
||||||
const workspaceJson = readWorkspaceJson();
|
|
||||||
performance.mark('read workspace files:start');
|
performance.mark('read workspace files:start');
|
||||||
|
|
||||||
if (defaultFileHasher.usesGitForHashing) {
|
if (defaultFileHasher.usesGitForHashing) {
|
||||||
|
const ignoredGlobs = getIgnoredGlobs();
|
||||||
const r = defaultFileHasher
|
const r = defaultFileHasher
|
||||||
.allFiles()
|
.allFiles()
|
||||||
|
.filter((f) => !ignoredGlobs.ignores(f))
|
||||||
.map((f) => getFileData(`${appRootPath}/${f}`));
|
.map((f) => getFileData(`${appRootPath}/${f}`));
|
||||||
performance.mark('read workspace files:end');
|
performance.mark('read workspace files:end');
|
||||||
performance.measure(
|
performance.measure(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user