UNPKG

@vendure/cli

Version:

A modern, headless ecommerce framework

19 lines (16 loc) 601 B
import type { CodegenConfig } from '@graphql-codegen/cli'; const config: CodegenConfig = { overwrite: true, // To generate this schema file, run `npx vendure schema` // whenever your schema changes, e.g. after adding custom fields // or API extensions schema: 'schema.graphql', config: { // This tells codegen that the `Money` scalar is a number scalars: { Money: 'number' }, // This ensures generated enums do not conflict with the built-in types. namingConvention: { enumValues: 'keep' }, }, generates: {}, }; export default config;