@@ -216139,19 +216139,18 @@ const github_1 = __importDefault(__nccwpck_require__(978));
216139216139 */
216140216140function getFullGraph() {
216141216141 return __awaiter(this, void 0, void 0, function* () {
216142- const { repoDir } = yield github_1.default.cloneRepo();
216143216142 // head の Graph を生成するために head に checkout する
216144- (0, child_process_1.execSync)(`git fetch origin ${github_1.default.getHeadSha()}`, { cwd: repoDir } );
216145- (0, child_process_1.execSync)(`git checkout ${github_1.default.getHeadSha()}`, { cwd: repoDir } );
216143+ (0, child_process_1.execSync)(`git fetch origin ${github_1.default.getHeadSha()}`);
216144+ (0, child_process_1.execSync)(`git checkout ${github_1.default.getHeadSha()}`);
216146216145 // head の Graph を生成
216147- const { graph: fullHeadGraph, meta } = (0, createGraph_1.createGraph)(path_1.default.resolve(repoDir, (0, config_1.getTsconfigRoot)()));
216146+ const { graph: fullHeadGraph, meta } = (0, createGraph_1.createGraph)(path_1.default.resolve((0, config_1.getTsconfigRoot)()));
216148216147 (0, log_1.log)('fullHeadGraph.nodes.length:', fullHeadGraph.nodes.length);
216149216148 (0, log_1.log)('fullHeadGraph.relations.length:', fullHeadGraph.relations.length);
216150216149 // base の Graph を生成するために base に checkout する
216151- (0, child_process_1.execSync)(`git fetch origin ${github_1.default.getBaseSha()}`, { cwd: repoDir } );
216152- (0, child_process_1.execSync)(`git checkout ${github_1.default.getBaseSha()}`, { cwd: repoDir } );
216150+ (0, child_process_1.execSync)(`git fetch origin ${github_1.default.getBaseSha()}`);
216151+ (0, child_process_1.execSync)(`git checkout ${github_1.default.getBaseSha()}`);
216153216152 // base の Graph を生成
216154- const { graph: fullBaseGraph } = (0, createGraph_1.createGraph)(path_1.default.resolve(repoDir, (0, config_1.getTsconfigRoot)()));
216153+ const { graph: fullBaseGraph } = (0, createGraph_1.createGraph)(path_1.default.resolve((0, config_1.getTsconfigRoot)()));
216155216154 (0, log_1.log)('fullBaseGraph.nodes.length:', fullBaseGraph.nodes.length);
216156216155 (0, log_1.log)('fullBaseGraph.relations.length:', fullBaseGraph.relations.length);
216157216156 return { fullHeadGraph, fullBaseGraph, meta };
0 commit comments