Skip to content

[BUG] Add plugin doesn't add content to generated schema file #427

@LongLiveCHIEF

Description

@LongLiveCHIEF

Describe the bug
Using the add option to modify the schema.generated.graphqls file fails to add the desired content
to the file.

To Reproduce

// codegen.ts
{
  generates: {
    'src/schema': defineConfig({
      add: {
        './schema.generated.graphql': { content: '/* eslint-disable */' },
      },
    })
  }
}

Expected behavior
Expected /* eslint-disable */ to be inserted at top of generated file

Screenshots
If applicable, add screenshots to help explain your problem.

Versions

  • OS: MacOS M4
  • OS Version: Tahoe 26.2
  • @eddeee888/gcg-typescript-resolver-files

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions