"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.toRepositoryRelativePath = toRepositoryRelativePath;
const node_path_1 = __importDefault(require("node:path"));
function toRepositoryRelativePath(repositoryRoot, targetPath) {
    const relativePath = node_path_1.default.relative(repositoryRoot, targetPath).replace(/\\/g, "/");
    return relativePath === "" ? "." : relativePath;
}
