import path from 'node:path';
import fs from 'fs-extra';
export async function readJsonFile(filePath) {
    const fullPath = path.resolve(filePath);
    return fs.readJson(fullPath);
}
export async function writeJsonFile(filePath, data) {
    const fullPath = path.resolve(filePath);
    await fs.ensureFile(fullPath);
    await fs.writeJson(fullPath, data, { spaces: 2 });
}
