"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.VUE_POWERED_DOCS_SITE_PACKAGES = void 0;
exports.isVuePoweredDocsSite = isVuePoweredDocsSite;
const package_json_1 = require("../../utils/package-json");
/**
 * Meta-frameworks that depend on `vue` but are documentation sites or
 * presentation tooling, not product Vue applications. The Vue wizard targets
 * SPA entrypoints; these should use the generic browser (JavaScript Web) path.
 */
exports.VUE_POWERED_DOCS_SITE_PACKAGES = [
    'vitepress',
    'vuepress',
    'vuepress-vite',
    '@vuepress/core',
    '@vuepress/client',
    'slidev',
    '@slidev/cli',
];
function isVuePoweredDocsSite(packageJson) {
    for (const name of exports.VUE_POWERED_DOCS_SITE_PACKAGES) {
        if ((0, package_json_1.hasPackageInstalled)(name, packageJson)) {
            return true;
        }
    }
    return false;
}
