Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@microsoft/rush",
"comment": "Fix a bug in \"@rushstack/rush-bridge-cache-plugin\" where the cache replay did not block the normal execution process and instead was a floating promise.",
"type": "none"
}
],
"packageName": "@microsoft/rush"
}
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class BridgeCachePlugin implements IRushPlugin {
}
);
// populate the cache for each operation
command.hooks.beforeExecuteOperations.tap(
command.hooks.beforeExecuteOperations.tapPromise(
PLUGIN_NAME,
async (
recordByOperation: Map<Operation, IOperationExecutionResult>,
Expand Down Expand Up @@ -137,9 +137,9 @@ export class BridgeCachePlugin implements IRushPlugin {
const projectFolder: string = operation.associatedProject?.projectFolder;
const missingFolders: string[] = [];
operation.settings.outputFolderNames.forEach((outputFolderName: string) => {
if (!FileSystem.exists(`${projectFolder}/${outputFolderName}`)) {
missingFolders.push(outputFolderName);
}
if (!FileSystem.exists(`${projectFolder}/${outputFolderName}`)) {
missingFolders.push(outputFolderName);
}
});
if (missingFolders.length > 0) {
terminal.writeWarningLine(
Expand Down
Loading