import { existsSync } from 'fs';
import { join } from 'path';
export const baseNameConfigExists = baseName => existsSync(baseName === undefined ? '.yo-rc.json' : join(baseName, '.yo-rc.json'));
export const allNewApplications = applications => {
    if (applications.length === 1)
        return !baseNameConfigExists();
    return !applications.find(application => baseNameConfigExists(application.config.baseName));
};
