diff --git a/src/index.js b/src/index.js index 0b5c1a2..f7563f1 100644 --- a/src/index.js +++ b/src/index.js @@ -33,7 +33,8 @@ const parcelOptions = { let moduleJson = []; for (const repo of ModuleRepos) { - console.log(repo); + // console.log(repo); + console.time(repo); const url = `https://github.com/${repo.split('@')[0]}.git`; const commitHash = repo.split('@')[1]; @@ -48,12 +49,6 @@ for (const repo of ModuleRepos) { const lastHash = await new Promise((res) => exec(`git rev-parse HEAD`, (err, stdout) => res(stdout.trim()))); - console.log(lastHash); - - if (lastHash !== commitHash) { - console.log('[Warning] Commit hash in modules does not match latest commit in repo'); - } - await new Promise((res) => exec(`git checkout ${commitHash}`, res)) const manifest = JSON.parse(readFileSync(`${cloneDir}/goosemodModule.json`)); @@ -85,5 +80,11 @@ for (const repo of ModuleRepos) { authors: manifest.authors }); - console.log(); + console.timeEnd(repo); + + // console.log(lastHash); + + if (lastHash !== commitHash) { + console.log('[Warning] Commit hash in modules does not match latest commit in repo'); + } } \ No newline at end of file