Files
klz-cables.com/.pnpm-store/v10/files/9a/df4771d59ba4b02a1f3873ace7ca7a542f934c1a5a508b4a508aa69f917c77dd80d71e287406314ff45e3c451c9d976f04a7f2d4efad405f05158a62687f1e
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

18 lines
708 B
Plaintext

/* eslint-disable no-console */ import minimist from 'minimist';
import { pathToFileURL } from 'node:url';
import { findConfig, loadEnv } from 'payload/node';
import { generateSchema } from './generateSchema.js';
export const bin = async ()=>{
loadEnv();
const configPath = findConfig();
const config = await (await import(pathToFileURL(configPath).toString())).default;
const args = minimist(process.argv.slice(2));
const script = (typeof args._[0] === 'string' ? args._[0] : '').toLowerCase();
if (script === 'generate:schema') {
return generateSchema(config);
}
console.log(`Unknown script: "${script}".`);
process.exit(1);
};
//# sourceMappingURL=index.js.map