Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

Commit

Permalink
fix: print hangon messages only every 20s
Browse files Browse the repository at this point in the history
  • Loading branch information
phuctm97 committed Jul 3, 2022
1 parent c0ed568 commit 69f1847
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/utils/install-dependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ export async function installDependencies(
projectDirectory: string
): Promise<void> {
const internal = setInterval(() => {
console.log("Hang on, packages are still being installed…");
}, ms("5s"));
console.log(
"Hang on, packages are still being installed, your connection may be a bit slow…"
);
}, ms("20s"));
await exec(`yarn install`, { cwd: projectDirectory });
clearInterval(internal);
}

0 comments on commit 69f1847

Please sign in to comment.