fix(deps): update typescript-vue-apollo to v6 for codegen v8
typescript-vue-apollo 5.x fails plugin validation under @graphql-codegen/cli 8
("The path argument must be of type string"). 6.0.0 targets plugin-helpers 8.
typescript-operations v7 emits every schema type used in a document, so
running it in the same output as the typescript plugin produced a duplicate
Range declaration. Split codegen into schema.ts (typescript) and
operations.ts (operations, vue-apollo, fragment-matcher) with
importSchemaTypesFrom, matching the Shiny frontend layout, and import
Event, DanceHallDistance and Range from the schema file.
Lockfile regenerated in cypress/base:26.13.0 to keep Linux optional deps.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ECBwyGcBKZhkRgyVyrLXPo
This commit is contained in:
1 parent
1a8661c5c0
commit
ce43a97e03
9 files changed
+215
-318
No files matched your search
+15
-5
@@ -1,13 +1,15 @@
|
||||
schema: http://localhost:6080/query
|
||||
documents: './graphql/**/*.graphql'
|
||||
generates:
|
||||
./graphql/generated/operations.ts:
|
||||
# Schema types (objects, inputs, enums) — the single owner of these
|
||||
# declarations. operations.ts imports them via `importSchemaTypesFrom`
|
||||
# instead of re-declaring them; typescript-operations v7 emits every schema
|
||||
# type used in a document, so keeping both plugins in one output produces
|
||||
# duplicate identifiers.
|
||||
./graphql/generated/schema.ts:
|
||||
plugins:
|
||||
- typescript
|
||||
- typescript-operations
|
||||
- typescript-vue-apollo
|
||||
- fragment-matcher
|
||||
config:
|
||||
config: &config
|
||||
gqlImport: '@/utils/gql#gql'
|
||||
fetcher: fetch
|
||||
avoidOptionals:
|
||||
@@ -21,3 +23,11 @@ generates:
|
||||
LocalDate: string
|
||||
LocalDateTime: string
|
||||
vueCompositionApiImportFrom: vue
|
||||
./graphql/generated/operations.ts:
|
||||
plugins:
|
||||
- typescript-operations
|
||||
- typescript-vue-apollo
|
||||
- fragment-matcher
|
||||
config:
|
||||
<<: *config
|
||||
importSchemaTypesFrom: './graphql/generated/schema'
|
||||
Reference in new issue
Block a user