const path = require('node:path');

function resolveRepoRoot() {
  return path.resolve(__dirname, '..', '..', '..');
}

function resolveTargetRoot(targetDirectory) {
  return path.resolve(targetDirectory || process.cwd());
}

module.exports = { resolveRepoRoot, resolveTargetRoot };
