"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.prompts = void 0;
const common_1 = require("../../common");
exports.prompts = [
    // XMCloud answer defines init behavior. Prompt must go first
    {
        type: 'confirm',
        name: 'xmcloud',
        message: 'Are you building for Sitecore XM Cloud?',
        default: false,
        when: (answers) => {
            // don't prompt if --yes or angular-xmcloud template was specified
            if (answers.templates.includes('angular-xmcloud') &&
                !answers.templates.includes('angular-sxp')) {
                answers.xmcloud = true;
                return false;
            }
            if (answers.yes) {
                return false;
            }
            return true;
        },
    },
    ...common_1.clientAppPrompts,
];
