function findBaseDirectory(dir, file) {
    return tslib_1.__awaiter(this, void 0, void 0, function* () {
        if (!dir || !file) {
            return;
        }
        for (const d of compilePaths(dir)) {
            const results = yield safe.readdir(d);
            if (results.includes(file)) {
                return d;
            }
        }
    });
}
/**
 * Find the base directory based on the path given and a marker file to look for.
 */
Find the base directory based on the path given and a marker file to look for.
Find the base directory based on the path given and a marker file to look for .
function findBaseDirectory(dir, file) {
    return tslib_1.__awaiter(this, void 0, void 0, function* () {
        if (!dir || !file) {
            return;
        }
        for (const d of compilePaths(dir)) {
            const results = yield safe.readdir(d);
            if (results.includes(file)) {
                return d;
            }
        }
    });
}
function findBaseDirectory ( dir , file ) { return tslib_1 . __awaiter ( this , void 0 , void 0 , function * ( ) { if ( ! dir || ! file ) { return ; } for ( const d of compilePaths ( dir ) ) { const results = yield safe . readdir ( d ) ; if ( results . includes ( file ) ) { return d ; } } } ) ; }
Find the base directory based on the path given and a marker file to look for.
Find the base directory based on the path given and a marker file to look for .