react/node_modules/@webpack-cli/utils/lib/path-utils.js
/**
 * Find the root directory path of a project.
 * @param {String} cwd - Any custom starting point to walk through directories
 * @returns {String} Absolute path of the project root.
 */
Find the root directory path of a project.
@param {String} cwd - Any custom starting point to walk through directories
@returns {String} Absolute path of the project root.
Find the root directory path of a project . @param { String } cwd - Any custom starting point to walk through directories @returns { String } Absolute path of the project root .
function findProjectRoot(cwd = process.cwd()) {
    const rootFilePath = findup_sync_1.default('package.json', { cwd });
    const projectRoot = path_1.default.dirname(rootFilePath);
    return projectRoot;
}
function findProjectRoot ( cwd = process . cwd ( ) ) { const rootFilePath = findup_sync_1 . default ( 'package.json' , { cwd } ) ; const projectRoot = path_1 . default . dirname ( rootFilePath ) ; return projectRoot ; }
Find the root directory path of a project.
Find the root directory path of a project .