Skip to content

Commit

Permalink
chore(core): adds spinners when graph computation takes longer than e…
Browse files Browse the repository at this point in the history
…xpected
  • Loading branch information
AgentEnder committed Dec 5, 2024
1 parent bd1662b commit 4c8099c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/nx/src/project-graph/plugins/isolation/messaging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export interface PluginCreateDependenciesResult {
type: 'createDependenciesResult';
payload:
| {
dependencies: ReturnType<LoadedNxPlugin['createDependencies']>;
dependencies: Awaited<ReturnType<LoadedNxPlugin['createDependencies']>>;
success: true;
tx: string;
}
Expand All @@ -99,7 +99,7 @@ export interface PluginCreateMetadataResult {
type: 'createMetadataResult';
payload:
| {
metadata: ReturnType<LoadedNxPlugin['createMetadata']>;
metadata: Awaited<ReturnType<LoadedNxPlugin['createMetadata']>>;
success: true;
tx: string;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -338,15 +338,15 @@ export async function createProjectConfigurations(
'Waiting on project information from ' +
(inProgressPlugins.size > 1
? `${inProgressPlugins.size} plugins`
: inProgressPlugins.keys()[0])
: inProgressPlugins.values().next().value)
).start();

spinnerUpdateInterval = setInterval(() => {
spinner.text =
'Waiting on project information from ' +
(inProgressPlugins.size > 1
? `${inProgressPlugins.size} plugins`
: inProgressPlugins.keys()[0]);
: inProgressPlugins.values().next().value);
}, 50);
}, 300);
}
Expand Down

0 comments on commit 4c8099c

Please sign in to comment.