Package Exports
- @eddeee888/gcg-server-config
- @eddeee888/gcg-server-config/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@eddeee888/gcg-server-config) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@eddeee888/gcg-server-config
This library has the recommended default options used by the server preset @eddeee888/gcg-typescript-resolver-files
.
Installation
yarn add -D @eddeee888/gcg-server-config
Usage
defineConfig
is typed with the assumption that GraphQL Code Generator's typescript and typescript-resolvers plugins are used.
import type { CodegenConfig } from '@graphql-codegen/cli';
import { defineConfig } from '@eddeee888/gcg-server-config';
const config: CodegenConfig = {
schema: '**/schema.graphql',
generates: {
'src/schema': {
plugins: ['typescript', 'typescript-resolvers'],
config: defineConfig(),
},
},
};
export default config;