Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.map(filename => ({ filename, config: normalizeOutputParam(config.generates[filename]) }))
.forEach(entry => {
It should looks like that:
schema:
- my-schema.graphql
generates:
my-file.ts:
- plugin1
- plugin2
- plugin3
`
);
}
for (const filename of generateKeys) {
generates[filename] = normalizeOutputParam(config.generates[filename]);
if (generates[filename].plugins.length === 0) {
throw new DetailedError(
'Invalid Codegen Configuration!',
`
Please make sure that your codegen config file has defined plugins list for output "${filename}".
It should looks like that:
schema:
- my-schema.graphql
generates:
my-file.ts:
- plugin1
- plugin2
- plugin3
.map(filename => normalizeOutputParam(config.generates[filename]))
.forEach(conf => {