import { readPackageJson } from '../utils.js';
/**
 * Detection pattern for Storefront Next (Odyssey) projects.
 *
 * Detects projects that have Storefront Next SDK dependencies.
 * Matches packages starting with @salesforce/storefront-next
 * (e.g., @salesforce/storefront-next-dev, @salesforce/storefront-next-runtime).
 */
export const storefrontNextPattern = {
    name: 'storefront-next',
    projectType: 'storefront-next',
    detect: async (workspacePath) => {
        const pkg = await readPackageJson(workspacePath);
        if (!pkg)
            return false;
        const deps = Object.keys({ ...pkg.dependencies, ...pkg.devDependencies });
        return deps.some((dep) => dep.startsWith('@salesforce/storefront-next'));
    },
};
//# sourceMappingURL=storefront-next.js.map