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]) {
|
if (!this.filesetHashes[mapKey]) {
|
||||||
this.filesetHashes[mapKey] = new Promise(async (res) => {
|
this.filesetHashes[mapKey] = new Promise(async (res) => {
|
||||||
const parts = [];
|
const parts = [];
|
||||||
if (fileset.indexOf('*') > -1) {
|
this.projectGraph.allWorkspaceFiles
|
||||||
this.projectGraph.allWorkspaceFiles
|
.filter((f) => minimatch(f.file, withoutWorkspaceRoot))
|
||||||
.filter((f) => minimatch(f.file, withoutWorkspaceRoot))
|
.forEach((f) => {
|
||||||
.forEach((f) => {
|
parts.push(f.hash);
|
||||||
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);
|
const value = this.hashing.hashArray(parts);
|
||||||
res({
|
res({
|
||||||
value,
|
value,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user