"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.checkRoot = void 0;
const fs = require("fs-extra");
const path = require("path");
const checkRoot = (root) => {
    const appDirFiles = fs.readdirSync(root);
    const targetFile = appDirFiles.includes('package.json');
    return targetFile ? root : (0, exports.checkRoot)(path.join(root, '..'));
};
exports.checkRoot = checkRoot;
