dotansimha / dotansimha/graphql-code-generator

Watch config does not update/overwrite file outside of root

Open
#7,955 0 comments 0 reactions 0 assignees View on GitHub
core
Dominant language
TypeScript
Stars
11.3k
Forks
1.4k
Avg merge
1d 1h
Merged PRs (30d)
23

Description

Config: -

```
schema: ./src/app/schema.ts
watch:
- src/graphql/**/**.*
require:
- ts-node/register/transpile-only
- tsconfig-paths/register
generates:
./src/types/schema.json: <-- file inside root
- introspection
../schema.json: <-- file outside root
- introspection
overwrite: true
```

If I run that, it will create the file in the root and the file outside the root. The watch works correctly however it only overwrites the file in the root. Thanks.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.