Log time installDependencies takes (#638)

This commit is contained in:
Jake Bailey
2023-03-15 13:22:31 -07:00
committed by GitHub
parent c9b4871d53
commit 43a41385e5

View File

@@ -49,6 +49,7 @@ export async function prepareAffectedPackages({
export async function installDependencies(packages: Iterable<TypingsData>, typesPath: string): Promise<void> {
console.log("Installing NPM dependencies...");
const start = Date.now();
// We need to run `npm install` for all dependencies, too, so that we have dependencies' dependencies installed.
for (const pkg of packages) {
@@ -67,4 +68,6 @@ export async function installDependencies(packages: Iterable<TypingsData>, types
console.log(` from ${cwd}: ${stdout}`);
}
}
console.log(`Took ${(Date.now() - start) / 1000} s`);
}