"Validates generated code against the Shopify topic you name."
,
"`--api` selects the validator; every other flag is passed straight through"
,
"to it. Run `scripts/validate.mjs --api <topic> --help` for that topic's own"
,
"options (they differ: GraphQL topics take --code/--file/--version, UI topics"
,
"add --target/--language, and liquid takes --theme-path/--filetype/--context)."
,
""
,
`Valid --api values: ${
t
.
join
(
", "
)
}`
,
""
].
join
(
`
3`)),process.exit(0)}var i=l(s);i||(console.error(`Error: --api is required. Pass the Shopify topic this code targets \u2014 one of: ${Object.keys(a).sort().join(", ")}.`),process.exit(1));var r=a[i];if(!r){let t=Object.keys(a).sort(),n=t.filter(o=>o.startsWith(`${i}_`));console.error(n.length?`Error: "${i}" is a topic, not a validator \u2014 it dispatches on the specific ${i} API. Valid values: ${n.join(", ")}.`:`Error: unknown --api "${i}". Valid values: ${t.join(", ")}.`),process.exit(1)}var m=_.has(r)?h(s):s;process.argv=[process.argv[0],process.argv[1],...m];try{await import(g[r])}catch(t){let n=t instanceof Error?t.message:String(t);console.error(`Error: could not run the ${r} validator for --api ${i}: ${n}
4Expected it alongside ${f(process.argv[1]||"validate.mjs")}.`),process.exit(1)}