dotansimha / dotansimha/graphql-code-generator-community
near-operation-file incompatible with `noExport: true`
- Dominant language
- TypeScript
- Stars
- 137
- Forks
- 195
- Avg merge
- 6h 20m
- Merged PRs (30d)
- 16
Description
**Describe the bug**
When choosing to use generated types as global types like `types.d.ts` in the src folder. It does break `near-operation-file` plugin since it tries to import from the types file.
**To Reproduce**
```yaml
schema:
documents:
generates:
src/types.d.ts:
plugins:
- '@graphql-codegen/typescript'
- '@graphql-codegen/typescript-operations'
config:
noExport: true
src/graphql:
preset: near-operation-file
presetConfig:
extension: .generated.ts
baseTypesPath: '../types.d.ts'
plugins:
- '@graphql-codegen/typescript-operations'
```
https://codesandbox.io/s/gifted-agnesi-5lry5?file=/codegen.yml
**Expected behavior**
It should be possible to have a `noExport` in the near-operation-file
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.