fix(core): use globbing also for workspace file patterns without '*' (#11298)
This commit is contained in:
parent
311dbd079c
commit
a43a99bea5
@ -459,20 +459,12 @@ class TaskHasher {
|
||||
if (!this.filesetHashes[mapKey]) {
|
||||
this.filesetHashes[mapKey] = new Promise(async (res) => {
|
||||
const parts = [];
|
||||
if (fileset.indexOf('*') > -1) {
|
||||
this.projectGraph.allWorkspaceFiles
|
||||
.filter((f) => minimatch(f.file, withoutWorkspaceRoot))
|
||||
.forEach((f) => {
|
||||
parts.push(f.hash);
|
||||
});
|
||||
} else {
|
||||
const matchingFile = this.projectGraph.allWorkspaceFiles.find(
|
||||
(t) => t.file === withoutWorkspaceRoot
|
||||
);
|
||||
if (matchingFile) {
|
||||
parts.push(matchingFile.hash);
|
||||
}
|
||||
}
|
||||
|
||||
const value = this.hashing.hashArray(parts);
|
||||
res({
|
||||
value,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user